UNPKG

@gamestdio/state-listener

Version:

Deeply compare JavaScript objects and listen to changes.

8 lines (7 loc) 204 B
export interface PatchObject { path: string[]; operation: "add" | "remove" | "replace"; value?: any; previousValue?: any; } export declare function compare(tree1: any, tree2: any): any[];