@mocanvas/sync · interface
interface CrdtOptions<R extends UnknownRecord = UnknownRecord>This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 5
clientId: stringIdentifies this replica; also the tiebreak in compareStamps.
getRecord?: ((id: string) => R | undefined) | undefinedRead the replica's current value for a record. The CRDT owns the stamps,
never the values: the store stays the source of truth and a merge is
expressed as a diff against whatever getRecord reports.
now?: (() => number) | undefinedInjectable wall clock, for tests.
tombstoneLimit?: number | undefinedTombstones kept for records that are gone. Default 5000.
tombstoneMaxAgeMs?: number | undefinedHow long such a tombstone lives. Default one hour.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.