API reference@evolu/common › local‑first/Timestamp

Hybrid logical clock timestamps for CRDT ordering.

Discriminated unions

InterfaceDescription
TimestampCounterOverflowErrorA TypeScript interface with a literal type property.
TimestampDriftErrorA TypeScript interface with a literal type property.
TimestampTimeOutOfRangeErrorA TypeScript interface with a literal type property.

Functions

FunctionDescription
createInitialTimestamp-
createTimestamp-
receiveTimestamp-
sendTimestamp-
timestampBytesToTimestamp-
timestampToDateIsoConvert a Timestamp to an ISO 8601 DateIso string.
timestampToTimestampBytes-

Interfaces

InterfaceDescription
TimestampHybrid Logical Clock timestamp.
TimestampConfig-
TimestampConfigDep-

Type Aliases

Type AliasDescription
Counter-
NodeIdA NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.
TimestampBytesSortable bytes representation of Timestamp.
TimestampError-

Variables

VariableDescription
Counter-
defaultTimestampMaxDriftDefault value for TimestampConfig.maxDrift.
eqTimestampEquality function for comparing Timestamp.
maxCounter-
maxNodeId-
minCounter-
minNodeId-
NodeIdA NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.
orderTimestampBytesAn Order for TimestampBytes.
TimestampHybrid Logical Clock timestamp.
TimestampBytesSortable bytes representation of Timestamp.
timestampBytesLength-