feat(core): KeyValueDiffer#diff allows null values (#24319)

PR Close #24319
This commit is contained in:
Fabian Wiles 2018-06-13 20:34:48 +12:00 committed by Miško Hevery
parent 2b49bf77af
commit 52ce9d5dcb

View File

@ -468,10 +468,10 @@ export interface KeyValueChanges<K, V> {
} }
export interface KeyValueDiffer<K, V> { export interface KeyValueDiffer<K, V> {
diff(object: Map<K, V>): KeyValueChanges<K, V>; diff(object: Map<K, V>): KeyValueChanges<K, V> | null;
diff(object: { diff(object: {
[key: string]: V; [key: string]: V;
}): KeyValueChanges<string, V>; }): KeyValueChanges<string, V> | null;
} }
export interface KeyValueDifferFactory { export interface KeyValueDifferFactory {