API reference › @evolu/common › local‑first/Timestamp › TimestampDriftError
Defined in: packages/common/src/local-first/Timestamp.ts:296
A timestamp exceeds TimestampConfig.maxDrift.
For local drift, the failed operation includes its candidate for explicit recovery by the database. For remote drift, it includes the rejected input; the local clock must not advance from it.
Local drift stays an error even when the database recovers: callers can rely on successful timestamp operations satisfying the drift limit without a separate check.
Extends
Typed<"TimestampDriftError">
Properties
cause
readonly cause: "local" | "remote";
Defined in: packages/common/src/local-first/Timestamp.ts:299
now
readonly now: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"LessThan281474976710655"> & Brand<"Millis">;
Defined in: packages/common/src/local-first/Timestamp.ts:301
Captured system time used for the drift check.
timestamp
readonly timestamp: Timestamp;
Defined in: packages/common/src/local-first/Timestamp.ts:298
The computed candidate for local drift, or the rejected remote input.
type
readonly type: "TimestampDriftError";
Defined in: packages/common/src/Type.ts:14201