@mocanvas/sync · interface

StampedPut

interface StampedPut<R extends UnknownRecord = UnknownRecord>

One record's changed fields. record is the whole record as the sender saw it after the change; fields says which paths this message actually claims. A receiver that already has the record takes only the winning paths out of record; a receiver that does not have it materializes from record whole.


Properties · 3

base?: Stamp

The stamp at which record was the sender's whole view of that record. Paths the receiver holds no stamp for are taken from record when this is the greatest such stamp it has seen, and left alone otherwise.

fields: Record<string, Stamp>
record: R

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.