valiField
Creates a validation functions that parses the Valibot schema of a field.
const validate = valiField(schema);
Parameters
schema
BaseSchema<
FieldValue
,any
> | BaseSchemaAsync<FieldValue
,any
>
Return
validate
(value:
FieldValue
) =>string