FieldConfig
Defined in: .work/repos/edinburgh/src/models.ts:23
Configuration interface for model fields.
Type Parameters
Section titled “Type Parameters”T
The field type.
Properties
Section titled “Properties”type:
TypeWrapper<T>
Defined in: .work/repos/edinburgh/src/models.ts:25
The type wrapper that defines how this field is serialized/validated.
description?
Section titled “description?”
optionaldescription?:string
Defined in: .work/repos/edinburgh/src/models.ts:27
Optional human-readable description of the field.
default?
Section titled “default?”
optionaldefault?:T| ((model) =>T)
Defined in: .work/repos/edinburgh/src/models.ts:29
Optional default value or function that generates default values.