Skip to content

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.

build: (meta) => z.ZodType

Defined in: packages/schema/src/field.ts:76

The Zod schema of a value, from the field’s settings.

FieldMeta

z.ZodType


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.