API Reference / @evolu/common / Evolu/Internal / sendTimestamp

Function: sendTimestamp()

function sendTimestamp(deps): (timestamp) => Result<Readonly<{
  counter: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThanOrEqualTo65535"> & Brand<"Counter">;
  millis: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<`LessThanOrEqualTo${number}`> & Brand<"Millis">;
  nodeId: string & Brand<"NodeId">;
}>, 
  | TimestampDriftError
  | TimestampCounterOverflowError
| TimestampTimeOutOfRangeError>;

Defined in: packages/common/src/Evolu/Timestamp.ts:191

Parameters

ParameterType
depsTimeDep & TimestampConfigDep

Returns

(timestamp): Result<Readonly<{
  counter: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThanOrEqualTo65535"> & Brand<"Counter">;
  millis: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<`LessThanOrEqualTo${number}`> & Brand<"Millis">;
  nodeId: string & Brand<"NodeId">;
}>, 
  | TimestampDriftError
  | TimestampCounterOverflowError
| TimestampTimeOutOfRangeError>;

Parameters

ParameterType
timestampReadonly

Returns

Result<Readonly<{ counter: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThanOrEqualTo65535"> & Brand<"Counter">; millis: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<`LessThanOrEqualTo${number}`> & Brand<"Millis">; nodeId: string & Brand<"NodeId">; }>, | TimestampDriftError | TimestampCounterOverflowError | TimestampTimeOutOfRangeError>

Was this page helpful?