TypeScript: pass result of useForm as component props
Hi,
I am trying to pass my
Here is an example:
Type error shown:
I am trying to pass my
form created by useForm via props to a child component but I am not sure how to properly type it in the TypeScript.Here is an example:
Type error shown:
Type 'ReactFormExtendedApi<{ emailAddress: string; }, FormValidateOrFn<{ emailAddress: string; }> | undefined, FormValidateOrFn<{ emailAddress: string; }> | undefined, ... 6 more ..., unknown>' is not assignable to type 'ReactFormExtendedApi<unknown, FormValidateOrFn<unknown> | undefined, FormValidateOrFn<unknown> | undefined, FormAsyncValidateOrFn<unknown> | undefined, ... 5 more ..., unknown>'.