UNPKG

mobx-keystone

Version:

A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more

10 lines (9 loc) 416 B
import { SnapshotInOf, SnapshotOutOf } from './SnapshotOf'; /** * Applies a full snapshot over an object, reconciling it with the current contents of the object. * * @template T Object type. * @param node Target object (model object, object or array). * @param snapshot Snapshot to apply. */ export declare function applySnapshot<T extends object>(node: T, snapshot: SnapshotInOf<T> | SnapshotOutOf<T>): void;