Interface Options<TItem, TItemModel>

Additional options for the list schema.

Type Parameters

  • TItem = unknown

    Type of list item.

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

    Type of list item model.

Hierarchy

Properties

Properties

single?: "accept" | "reject"

How to treat single values.

One of:

'accept' to treat single value as list with single item. 'reject' (the default) to reject single value.

This option is ignored if item type is a list itself.

where?: UcConstraints<TItem[], UcList.Schema<TItem, TItemModel>> | readonly UcConstraints<TItem[], UcList.Schema<TItem, TItemModel>>[]

Additional schema constraints.

within?: UcPresentations<TItem[], UcList.Schema<TItem, TItemModel>> | readonly UcPresentations<TItem[], UcList.Schema<TItem, TItemModel>>[]

Additional schema instance presentation constraints.

Generated using TypeDoc