zodForm
Creates a validation functions that parses the Zod schema of a form.
const validate = zodForm(schema);
Parameters
schema
ZodType<
any
,any
,FieldValues
>
Return
validate
(values:
PartialValues<
) =>FieldValues
>FormErrors
Creates a validation functions that parses the Zod schema of a form.
const validate = zodForm(schema);
schema
ZodType<any
, any
, FieldValues
>
validate
(values: PartialValues<FieldValues
>
) => FormErrors