mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add FunctionComponent to be child of WidthProvider (#42888)
This commit is contained in:
parent
1411339dd3
commit
129a5e0950
2
types/react-grid-layout/index.d.ts
vendored
2
types/react-grid-layout/index.d.ts
vendored
@ -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>;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user