diff --git a/type-definitions/Immutable.d.ts b/type-definitions/Immutable.d.ts index 9a66449a1a..88976ad83b 100644 --- a/type-definitions/Immutable.d.ts +++ b/type-definitions/Immutable.d.ts @@ -2431,7 +2431,8 @@ declare module Immutable { * notSetValue will be returned if provided. Note that this scenario would * produce an error when using Flow or TypeScript. */ - get(key: K, notSetValue: any): TProps[K]; + get(key: K, notSetValue?: any): TProps[K]; + get(key: string, notSetValue: T): T; // Reading deep values