KeyValueDiffer
interface
stable
A differ that tracks changes made to an object over time.
API
interface KeyValueDiffer<K, V> { diff(object: Map<K, V>): KeyValueChanges<K, V> | null; diff(object: { [key: string]: V; }): KeyValueChanges<string, V> | null;}
diff
KeyValueChanges<K, V> | nullCompute a difference between the previous state and the new object state.
@paramobject
Map<K, V>containing the new value.
@returns
KeyValueChanges<K, V> | nulldiff
KeyValueChanges<string, V> | nullCompute a difference between the previous state and the new object state.
@paramobject
{ [key: string]: V; }containing the new value.
@returns
KeyValueChanges<string, V> | nullJump to details