Skip to content

Commit a8953c6

Browse files
committed
fix: Form static props are recognized as any in TS
1 parent e36fbea commit a8953c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Form.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ class Form extends Component<IFormProps & { forwardedRef: any }> {
101101
}
102102
}
103103

104-
export default hoistNonReactStatics(
104+
const HoistedForm = hoistNonReactStatics(
105105
React.forwardRef<Formsy, IFormProps>((props: IFormProps, ref) => (
106106
<Form {...props} forwardedRef={ref} />
107107
)),
108108
Form
109109
);
110+
111+
export default HoistedForm;

0 commit comments

Comments
 (0)