diff --git a/types/icepick/index.d.ts b/types/icepick/index.d.ts index bffe424d1b..fe7a3d0b36 100644 --- a/types/icepick/index.d.ts +++ b/types/icepick/index.d.ts @@ -8,13 +8,15 @@ export declare function freeze(collection: T): T; export declare function thaw(collection: T): T; export declare function assoc(collection: T, key: number | string, value: V): T; export declare function dissoc(collection: T, key: number | string): T; +export declare function dissocIn(collection: T, path: Array): T; export declare function assocIn(collection: T, path: Array, value: V): T; export declare function getIn(collection: T, path: Array): any; export declare function updateIn(collection: T, path: Array, callback: (value: V) => V): T; export {assoc as set}; -export {dissoc as unset}; export {assocIn as setIn}; +export {dissoc as unset}; +export {dissocIn as unsetIn}; export declare function assign(target: T): T; export declare function assign(target: T, source1: S1): (T & S1); @@ -52,6 +54,9 @@ interface IcepickWrapper { assocIn(path: Array, value: V): IcepickWrapper; setIn(path: Array, value: V): IcepickWrapper; + + dissocIn(path: Array): IcepickWrapper; + unsetIn(path: Array): IcepickWrapper; getIn(path: Array): IcepickWrapper; updateIn(path: Array, callback: (value: V) => V): IcepickWrapper;