zodField

Creates a validation functions that parses the Zod schema of a field.

const validate = zodField(schema);

Parameters

Return