-
Notifications
You must be signed in to change notification settings - Fork 0
IntervalCreationOptions
Christian Prinz edited this page Oct 17, 2022
·
1 revision
The extended CreationOptions
that every ValueObject should provide, if the Object allows to
have a Range.
- eg.:
PositiveInteger
within a specific Interval like[0, 100]
- eg.:
NonEmptyString
that has to have a specific length
-
↳
IntervalCreationOptions
• Optional
max: number
the upper bound of the interval the value has to be in
valueObjects/ValueObject.ts:174
• Optional
min: number
the lower bound of the interval the value has to be in
valueObjects/ValueObject.ts:170
• Optional
name: string
the name of the ValueObject to identify in a possible ErrorMessage.
- eg:
'MealPlan.price'