UNPKG

mobx-bonsai-yjs

Version:

Y.js two-way binding for mobx-bonsai

15 lines (14 loc) 439 B
import { YjsStructure } from '../yjsTypes/types'; import * as Y from "yjs"; export declare function setupNodeToYjsReplication({ node, yjsDoc, yjsObject, yjsOriginGetter, yjsOriginCache, yjsReplicatingRef, }: { node: object; yjsDoc: Y.Doc; yjsObject: YjsStructure; yjsOriginGetter: () => symbol; yjsOriginCache: WeakSet<symbol>; yjsReplicatingRef: { current: number; }; }): { dispose: () => void; };