Add FunctionComponent to be child of WidthProvider (#42888)

This commit is contained in:
Domino987 2020-03-12 23:54:47 +01:00 committed by GitHub
parent 1411339dd3
commit 129a5e0950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,6 +342,6 @@ declare namespace ReactGridLayout {
}
function WidthProvider<P>(
component: React.ComponentClass<P>
component: React.ComponentClass<P> | React.FunctionComponent<P>
): React.ComponentClass<P & WidthProviderProps>;
}