require('tslib');
const {Model} = require('json-joy/es2020/json-crdt');
const commonSeedSessionId = 11111111;
const start = Model.withLogicalClock(commonSeedSessionId);
start.api.root({
markers: {},
});
const user1 = start.fork();
const user2 = start.fork();
user1.api.obj(['markers']).set({
xxx: 1.123,
});
const patch = user1.api.flush();
user2.applyPatch(patch);
console.log(user1 + '');
console.log(user2 + '');