Options especially for the fromList() methods on ValueObjects. These options regard to the constraints of the list itself - not the specific ValueObjects inside it.

Hierarchy

  • ListCreationOptions

Properties

listRequired?: boolean

is undefined forbidden as a valid input

listSize?: {
    fix?: number;
    max?: number;
    min?: number;
}

constraints on the list's size

Type declaration

  • Optional fix?: number

    fix amount of values inside of the list. This serves as a shortcut for min = max.

  • Optional max?: number

    maximum amount of values inside of the list

  • Optional min?: number

    minimum amount of values inside of the list

Generated using TypeDoc