-
Notifications
You must be signed in to change notification settings - Fork 0
ListCreationOptions
Christian Prinz edited this page Oct 17, 2022
·
1 revision
Options especially for the fromList()
methods on ValueObjects. These options regard to the
constraints of the list itself - not the specific ValueObjects inside it.
• Optional
forbidUndefined: boolean
is undefined forbidden as a valid input
valueObjects/ValueObject.ts:183
• Optional
listSize: Object
constraints on the list's size
Name | Type | Description |
---|---|---|
fix? |
number |
fix amount of values inside of the list. This serves as a shortcut for min = max. |
max? |
number |
maximum amount of values inside of the list |
min? |
number |
minimum amount of values inside of the list |