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