zodField
Creates a validation functions that parses the Zod schema of a field.
const validate = zodField(schema);
Parameters
schema
ZodType<
any
,any
,FieldValue
>
Return
validate
(value:
FieldValue
) =>string
Creates a validation functions that parses the Zod schema of a field.
const validate = zodField(schema);
schema
ZodType<any
, any
, FieldValue
>
validate
(value: FieldValue
) => string