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
Parameter | Type |
---|---|
deps | TimeDep & 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
Parameter | Type |
---|---|
timestamp | Readonly |
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
>