Skip to main content

Interface: CloudSyncWriteKey

Defined in: shared/types/cloudSync.ts:97

Common write ordering key.

Remarksโ€‹

Ordering is deterministic:

  1. Higher timestamp wins.
  2. Tie-breaker: lexicographic deviceId.
  3. Tie-breaker (same device): higher opId wins.

Propertiesโ€‹

deviceIdโ€‹

readonly deviceId: string;

Defined in: shared/types/cloudSync.ts:99

Device identifier that produced the write.


opIdโ€‹

readonly opId: number;

Defined in: shared/types/cloudSync.ts:101

Monotonic per-device operation id.


timestampโ€‹

readonly timestamp: number;

Defined in: shared/types/cloudSync.ts:103

Unix epoch milliseconds (UTC).