From 44a802cdba697cab1b2d9f762549817432a7fd8c Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Fri, 29 Mar 2019 15:24:16 -0700 Subject: [PATCH] react-redux currently relies on a TS bug (Microsoft/TypeScript#30634) to sucessfully typecheck, this fixes that (#34335) --- types/react-redux/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index f97fd11b9d..66b1d7afa5 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -87,7 +87,7 @@ export type Matching = { */ export type Shared< InjectedProps, - DecorationTargetProps extends Shared + DecorationTargetProps > = { [P in Extract]?: InjectedProps[P] extends DecorationTargetProps[P] ? DecorationTargetProps[P] : never; };