UNPKG

mobx-bonsai

Version:

A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding

14 lines (13 loc) 373 B
import type * as Y from "yjs"; import { YjsStructure } from "../yjsTypes/types"; export declare function setupNodeToYjsReplication({ node, yjsDoc, yjsObject, yjsOrigin, yjsReplicatingRef, }: { node: object; yjsDoc: Y.Doc; yjsObject: YjsStructure; yjsOrigin: symbol; yjsReplicatingRef: { current: number; }; }): { dispose: () => void; };