From 5e54cc92a759a9a9491e0694cc262b511e370dd2 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Mon, 9 Jul 2018 22:24:48 +0100 Subject: [PATCH] react-redux: use `Exclude` in `Omit` (#27019) The legacy definition doesn't work with TypeScript 2.9. Fixes https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26510 --- types/react-redux/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 7447c1efa3..e33de8c1a7 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -41,8 +41,8 @@ import { Store } from 'redux'; -// Diff / Omit taken from https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-311923766 -type Omit = Pick; +// Omit taken from https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html +type Omit = Pick>; export interface DispatchProp { dispatch: Dispatch;