Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbc9d4 commit 9237d48Copy full SHA for 9237d48
type-definitions/Immutable.d.ts
@@ -2452,7 +2452,8 @@ declare module Immutable {
2452
* notSetValue will be returned if provided. Note that this scenario would
2453
* produce an error when using Flow or TypeScript.
2454
*/
2455
- get<K extends keyof TProps>(key: K, notSetValue: any): TProps[K];
+ get<K extends keyof TProps>(key: K, notSetValue?: any): TProps[K];
2456
+ get<T>(key: string, notSetValue: T): T;
2457
2458
// Reading deep values
2459
0 commit comments