> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: ClockMapping<S, T>

> Reference for the ClockMapping class in bijection/clocks.

[clocks](https://docs.bijection.com/api/modules/clocks).ClockMapping

## Type parameters

| Name | Type |
| :- | :- |
| `S` | extends `string` = `string` |
| `T` | extends `string` = `string` |

## Constructors

### constructor

• **new ClockMapping**\<`S`, `T`>(`options`)

#### Type parameters

| Name | Type |
| :- | :- |
| `S` | extends `string` = `string` |
| `T` | extends `string` = `string` |

#### Parameters

| Name | Type |
| :- | :- |
| `options` | [`MappingOptions`](https://docs.bijection.com/api/modules/clocks#mappingoptions)\<`S`, `T`> |

## Properties

### source

• `Readonly` **source**: [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)\<`S`>

***

### target

• `Readonly` **target**: [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)\<`T`>

***

### fromTicks

• `Readonly` **fromTicks**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### toTicks

• `Readonly` **toTicks**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### sourceAnchor

• `Readonly` **sourceAnchor**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### targetAnchor

• `Readonly` **targetAnchor**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### targetTicksPerSourceTick

• `Readonly` **targetTicksPerSourceTick**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### uncertaintySeconds

• `Readonly` **uncertaintySeconds**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

## Accessors

### revision

• `get` **revision**(): `string`

#### Returns

`string`

## Methods

### wire

▸ **wire**(): `Object`

#### Returns

`Object`

| Name | Type |
| :- | :- |
| `source` | \{ `identity`: `S` ; `ticks_per_second`: [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio)  } |
| `source.identity` | `S` |
| `source.ticks_per_second` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `target` | \{ `identity`: `T` ; `ticks_per_second`: [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio)  } |
| `target.identity` | `T` |
| `target.ticks_per_second` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `from_ticks` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `to_ticks` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `source_anchor` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `target_anchor` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `target_ticks_per_source_tick` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `uncertainty_seconds` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |

***

### fromWire

▸ `Static` **fromWire**(`value`): [`ClockMapping`](https://docs.bijection.com/api/classes/clocks.ClockMapping)

#### Parameters

| Name | Type |
| :- | :- |
| `value` | `unknown` |

#### Returns

[`ClockMapping`](https://docs.bijection.com/api/classes/clocks.ClockMapping)

***

### inverse

▸ **inverse**(): [`ClockMapping`](https://docs.bijection.com/api/classes/clocks.ClockMapping)\<`T`, `S`>

#### Returns

[`ClockMapping`](https://docs.bijection.com/api/classes/clocks.ClockMapping)\<`T`, `S`>

***

### map

▸ **map**(`input`, `«destructured»`): [`MappedInstant`](https://docs.bijection.com/api/classes/clocks.MappedInstant)

#### Parameters

| Name | Type |
| :- | :- |
| `input` | [`Instant`](https://docs.bijection.com/api/classes/clocks.Instant) \| [`MappedInstant`](https://docs.bijection.com/api/classes/clocks.MappedInstant) |
| `«destructured»` | `Object` |
| › `maxErrorSeconds` | [`Exact`](https://docs.bijection.com/api/modules/clocks#exact) |

#### Returns

[`MappedInstant`](https://docs.bijection.com/api/classes/clocks.MappedInstant)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.