mobx-keystone-mindreframer
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) • 399 B
TypeScript
import type { SnapshotOutOf } from "./SnapshotOf";
/**
* Applies a full snapshot over an object, reconciling it with the current contents of the object.
*
* @typeparam 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: SnapshotOutOf<T>): void;