File tree 2 files changed +2
-3
lines changed
generatedTypes/src/commons
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ export interface ForwardRefInjectedProps {
5
5
*/
6
6
forwardedRef : any ;
7
7
}
8
- export default function forwardRef < P = any > ( WrappedComponent : React . ComponentType < P > ) : React . ComponentType < P > ;
8
+ export default function forwardRef < P = any , STATICS = { } > ( WrappedComponent : React . ComponentType < P > ) : React . ComponentType < P > & STATICS ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface ForwardRefInjectedProps {
8
8
forwardedRef : any ;
9
9
}
10
10
11
- export default function forwardRef < P = any > ( WrappedComponent : React . ComponentType < P > ) : React . ComponentType < P > {
11
+ export default function forwardRef < P = any , STATICS = { } > ( WrappedComponent : React . ComponentType < P > ) : React . ComponentType < P > & STATICS {
12
12
function forwardRef ( props : P , ref : any ) {
13
13
return < WrappedComponent { ...props } forwardedRef = { ref } /> ;
14
14
}
@@ -24,4 +24,3 @@ export default function forwardRef<P = any>(WrappedComponent: React.ComponentTyp
24
24
25
25
return ForwardedComponent as any ;
26
26
}
27
-
You can’t perform that action at this time.
0 commit comments