KeyValueChanges
An object describing the changes in the Map
or {[k:string]: string}
since last time KeyValueDiffer#diff()
was invoked.
interface KeyValueChanges<K, V> {
forEachItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void
forEachPreviousItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void
forEachChangedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void
forEachAddedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void
forEachRemovedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void
}
方法
Iterate over all changes. | |||
参数
返回值
|
Iterate over changes in the order of original Map showing where the original items have moved. | |||
参数
返回值
|
Iterate over all keys for which values have changed. | |||
参数
返回值
|
Iterate over all added items. | |||
参数
返回值
|
Iterate over all removed items. | |||
参数
返回值
|