UNPKG

mobx-bonsai

Version:

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

9 lines (8 loc) 288 B
/** * Applies a full snapshot over an node, reconciling it with the current contents of the object. * * @template T Object type. * @param node Target node. * @param snapshot Snapshot to apply. */ export declare const applySnapshot: <T extends object>(node: T, snapshot: T) => void;