From 2271071fb5e296fe3063e942e16eb49cc72271ed Mon Sep 17 00:00:00 2001 From: "yu.zhang" Date: Mon, 12 Mar 2018 20:14:23 +0800 Subject: [PATCH] fixed GridCellProps parent type, which incompatible with CellMeasurer parent type --- types/react-virtualized/dist/es/Grid.d.ts | 2 +- types/react-virtualized/index.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-virtualized/dist/es/Grid.d.ts b/types/react-virtualized/dist/es/Grid.d.ts index 9a6492f368..630e64df69 100644 --- a/types/react-virtualized/dist/es/Grid.d.ts +++ b/types/react-virtualized/dist/es/Grid.d.ts @@ -9,7 +9,7 @@ export type GridCellProps = { isScrolling: boolean; isVisible: boolean; key: string; - parent: Grid | List | Table; + parent: typeof Grid | typeof List | typeof Table; rowIndex: number; style: React.CSSProperties; }; diff --git a/types/react-virtualized/index.d.ts b/types/react-virtualized/index.d.ts index 6293d20c9e..8159c49ff2 100644 --- a/types/react-virtualized/index.d.ts +++ b/types/react-virtualized/index.d.ts @@ -5,6 +5,7 @@ // Konstantin Nesterov // Szőke Szabolcs // Kræn Hansen +// Steve Zhang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6