Skip to content

Commit c5c8698

Browse files
committed
Better definition for hasIn
1 parent 97556af commit c5c8698

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/immutable.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,8 @@ declare module 'immutable' {
13601360
* True if the result of following a path of keys or indices through nested
13611361
* Iterables results in a set value.
13621362
*/
1363-
hasIn(searchKeyPath): boolean;
1363+
hasIn(searchKeyPath: Array<any>, notSetValue?: any): boolean;
1364+
hasIn(searchKeyPath: Iterable<any, any>, notSetValue?: any): boolean;
13641365

13651366

13661367
// Conversion to JavaScript types

type-definitions/Immutable.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,8 @@ declare module 'immutable' {
13601360
* True if the result of following a path of keys or indices through nested
13611361
* Iterables results in a set value.
13621362
*/
1363-
hasIn(searchKeyPath): boolean;
1363+
hasIn(searchKeyPath: Array<any>, notSetValue?: any): boolean;
1364+
hasIn(searchKeyPath: Iterable<any, any>, notSetValue?: any): boolean;
13641365

13651366

13661367
// Conversion to JavaScript types

0 commit comments

Comments
 (0)