Skip to content

FieldConfig

Defined in: .work/repos/edinburgh/src/models.ts:23

Configuration interface for model fields.

T

The field type.

type: TypeWrapper<T>

Defined in: .work/repos/edinburgh/src/models.ts:25

The type wrapper that defines how this field is serialized/validated.


optional description?: string

Defined in: .work/repos/edinburgh/src/models.ts:27

Optional human-readable description of the field.


optional default?: T | ((model) => T)

Defined in: .work/repos/edinburgh/src/models.ts:29

Optional default value or function that generates default values.