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