immer
Version:
Create your next immutable state by mutating the current one
5 lines • 344 B
TypeScript
import { ImmerState, Patch } from "./internal";
export declare type PatchPath = (string | number)[];
export declare function generatePatches(state: ImmerState, basePath: PatchPath, patches: Patch[], inversePatches: Patch[]): void;
export declare function applyPatches<T>(draft: T, patches: Patch[]): T;
//# sourceMappingURL=patches.d.ts.map