Skip to main content

Interface: CloudSyncWriteKey

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

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:94

Device identifier that produced the write.


opIdโ€‹

readonly opId: number

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

Monotonic per-device operation id.


timestampโ€‹

readonly timestamp: number

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

Unix epoch milliseconds (UTC).