mobx-keystone-yjs
Version:
Yjs bindings for mobx-keystone
9 lines (8 loc) • 415 B
TypeScript
import * as Y from "yjs";
export type ReconciliationMap = Map<string, object>;
/**
* Applies a Y.js event directly to the MobX model tree using proper mutations
* (splice for arrays, property assignment for objects).
* This is more efficient than converting to patches first.
*/
export declare function applyYjsEventToMobx(event: Y.YEvent<any>, boundObject: object, reconciliationMap: ReconciliationMap): void;