FieldTypeDef
FieldTypeDef =
object
Defined in: packages/schema/src/field.ts:70
A field type: its name, the constraints it takes and how it builds the schema that checks a value.
Properties
Section titled “Properties”build: (
meta) =>z.ZodType
Defined in: packages/schema/src/field.ts:76
The Zod schema of a value, from the field’s settings.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”z.ZodType
constraints
Section titled “constraints”constraints: readonly
Constraint[]
Defined in: packages/schema/src/field.ts:74
The constraints its fields may use; any other throws when the config loads.
type:
FieldType
Defined in: packages/schema/src/field.ts:72
The field type it defines.