UNPKG
@gamestdio/state-listener
Version:
latest (3.1.0)
3.1.0
3.0.1
3.0.0
Deeply compare JavaScript objects and listen to changes.
@gamestdio/state-listener
/
lib
/
compare.d.ts
8 lines
(7 loc)
•
204 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
interface
PatchObject
{
path
:
string
[];
operation
:
"add"
|
"remove"
|
"replace"
;
value
?:
any
;
previousValue
?:
any
; }
export
declare
function
compare
(
tree1
:
any
,
tree2
:
any
):
any
[];