File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type { ThemeProviderType } from './createThemeProvider';
1313const isClassComponent = ( Component : any ) =>
1414 Boolean ( Component . prototype && Component . prototype . isReactComponent ) ;
1515
16- export type WithThemeType < T , S > = < C : React . ComponentType < * >> (
16+ export type WithThemeType < T , S > = < P , C : React . ComponentType < P >> (
1717 Comp : C
1818) => C &
1919 React . ComponentType <
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export function copyRefs<Props>(
3131 TargetComponent : React . ComponentType < Props > ,
3232 SourceComponent : React . ComponentType < Props >
3333) : React . ComponentType < Props > {
34+ // $FlowFixMe
3435 if ( ! SourceComponent . prototype ) {
3536 return TargetComponent ;
3637 }
You can’t perform that action at this time.
0 commit comments