Optional
Readonly
error?: unknownOnly has a value when kind is X.
Optional
Readonly
index?: numberIndicates the array index where the change occurred (kind A).
Optional
Readonly
item?: Difference<Value>Contains a nested change record indicating the change that occurred at the array index (kind A).
Readonly
kind: "A" | "D" | "E" | "N" | "X"Indicates the kind of change.
Optional
Readonly
lhs?: ValueThe value on the left-hand-side of the comparison (undefined
for kind N).
Optional
Readonly
path?: ReadOnlyArray<string>The property path.
Optional
Readonly
rhs?: ValueThe value on the right-hand-side of the comparison (undefined
for kind D).
Difference object from
deep-diff
, with some customizations on top.Example