Skip to content

Commit c90d695

Browse files
committed
chore: Form ref will also pass types to Form
1 parent 159832c commit c90d695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FieldForm, { FormProps } from './Form';
77
import { FormProvider } from './FormContext';
88

99
const InternalForm = React.forwardRef<FormInstance, FormProps>(FieldForm) as <Values = any>(
10-
props: React.PropsWithChildren<FormProps<Values>> & { ref?: React.Ref<FormInstance> },
10+
props: React.PropsWithChildren<FormProps<Values>> & { ref?: React.Ref<FormInstance<Values>> },
1111
) => React.ReactElement;
1212

1313
type InternalForm = typeof InternalForm;

0 commit comments

Comments
 (0)