File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2452
2452
* notSetValue will be returned if provided. Note that this scenario would
2453
2453
* produce an error when using Flow or TypeScript.
2454
2454
*/
2455
- get < K extends keyof TProps > ( key : K , notSetValue : any ) : TProps [ K ] ;
2455
+ get < K extends keyof TProps > ( key : K , notSetValue ?: any ) : TProps [ K ] ;
2456
+ get < T > ( key : string , notSetValue : T ) : T ;
2456
2457
2457
2458
// Reading deep values
2458
2459
Original file line number Diff line number Diff line change @@ -2452,7 +2452,8 @@ declare module Immutable {
2452
2452
* notSetValue will be returned if provided. Note that this scenario would
2453
2453
* produce an error when using Flow or TypeScript.
2454
2454
*/
2455
- get < K extends keyof TProps > ( key : K , notSetValue : any ) : TProps [ K ] ;
2455
+ get < K extends keyof TProps > ( key : K , notSetValue ?: any ) : TProps [ K ] ;
2456
+ get < T > ( key : string , notSetValue : T ) : T ;
2456
2457
2457
2458
// Reading deep values
2458
2459
You can’t perform that action at this time.
0 commit comments