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

Variable: Timestamp

const Timestamp: ObjectType<{
  counter: BrandType<BrandType<Type<"Brand", number & Brand<"Int"> & Brand<"NonNegative">, number, NonNegativeError, number & Brand<"Int">, 
     | NumberError
     | IntError>, "LessThanOrEqualTo65535", LessThanOrEqualToError<65535>, 
     | NumberError
     | NonNegativeError
     | IntError>, "Counter", BrandWithoutRefineError<"Counter", 
     | NumberError
     | NonNegativeError
     | IntError
    | LessThanOrEqualToError<65535>>, never>;
  millis: BrandType<BrandType<Type<"Brand", number & Brand<"Int"> & Brand<"NonNegative">, number, NonNegativeError, number & Brand<"Int">, 
     | NumberError
     | IntError>, `LessThanOrEqualTo${number}`, LessThanOrEqualToError<number>, 
     | NumberError
     | NonNegativeError
     | IntError>, "Millis", BrandWithoutRefineError<"Millis", 
     | NumberError
     | NonNegativeError
     | IntError
    | LessThanOrEqualToError<number>>, never>;
  nodeId: BrandType<Type<"String", string, string, StringError, string, StringError>, "NodeId", RegexError<"NodeId">, StringError>;
}>;

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

Hybrid Logical Clock timestamp.

Was this page helpful?