Interface Schema<TItem, TItemModel>

Schema definition for JavaScript array serialized as list.

Such schema can be built with ucList function.

Type Parameters

  • out TItem = unknown

    Type of list item.

  • out TItemModel extends UcModel<TItem> = UcModel<TItem>

    Type of list item model.

Hierarchy

Properties

item: Of<TItemModel>

List item schema.

nullable?: boolean

Whether the data is nullable.

When true the data value may be null.

Default Value

false, which means null data value prohibited.

optional?: boolean

Whether the data is optional.

When true the data value may be undefined.

Default Value

false, which means undefined data value prohibited.

type: "list"

Either unique type name, or type class.

Code generation is based on this name.

where?: UcConstraints<TItem[], UcSchema<TItem[]>>

Schema constraints.

within?: UcPresentations<TItem[]>

Schema instance presentation constraints.

Methods

Generated using TypeDoc