mobx-bonsai
Version:
A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding
11 lines (10 loc) • 435 B
TypeScript
import { UndoableChange } from './types';
/**
* Applies a single change in forward or reverse mode.
* Used by UndoManager during undo/redo operations.
*
* @param rootNode - The tracked root node
* @param change - The change to apply
* @param mode - Whether to apply the change forward (redo) or reverse (undo)
*/
export declare const applyChange: (rootNode: object, change: UndoableChange, mode: "forward" | "reverse") => void;