We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does anyone have an idea how to correctly type the src/client/components/Form/Form.tsx
src/client/components/Form/Form.tsx
export const Form = < TFormValues extends Record<string, any> = Record<string, any>, Schema extends ZodType<any, any, any> = ZodType<any, any, any> >({ onSubmit, children, className, options, id, schema, }: FormProps<TFormValues, Schema>) => { const methods = useForm<TFormValues>({ ...options, resolver: schema && zodResolver(schema), });
There are quiet some any types which I'd like to get rid off.
Thanks for the help!
The text was updated successfully, but these errors were encountered:
Hi, I have updated it to the following:
export const Form = < TFormValues extends Record<string, unknown> = Record<string, unknown>, Schema extends ZodType<unknown, ZodTypeDef, unknown> = ZodType<unknown, ZodTypeDef, unknown> >({ .... })
Thanks for reporting it.
Sorry, something went wrong.
No branches or pull requests
Does anyone have an idea how to correctly type the
src/client/components/Form/Form.tsx
There are quiet some any types which I'd like to get rid off.
Thanks for the help!
The text was updated successfully, but these errors were encountered: