valiForm
Creates a validation functions that parses the Valibot schema of a form.
const validate = valiForm(schema);
Parameters
schema
BaseSchema<
FieldValues
,any
> | BaseSchemaAsync<FieldValues
,any
>
Return
validate
(values:
PartialValues<
) =>FieldValues
>FormErrors