From 129a5e09507ece6d3f9e0b7fedce0235d865d8b5 Mon Sep 17 00:00:00 2001 From: Domino987 Date: Thu, 12 Mar 2020 23:54:47 +0100 Subject: [PATCH] Add FunctionComponent to be child of WidthProvider (#42888) --- types/react-grid-layout/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-grid-layout/index.d.ts b/types/react-grid-layout/index.d.ts index cd564ae220..bc218d3333 100644 --- a/types/react-grid-layout/index.d.ts +++ b/types/react-grid-layout/index.d.ts @@ -342,6 +342,6 @@ declare namespace ReactGridLayout { } function WidthProvider

( - component: React.ComponentClass

+ component: React.ComponentClass

| React.FunctionComponent

): React.ComponentClass

; }