-
Notifications
You must be signed in to change notification settings - Fork 0
SafeBooleanOptions
Christian Prinz edited this page Oct 17, 2022
·
1 revision
Options that every ValueObject must provide
-
↳
SafeBooleanOptions
• Optional allowUndefinedAs: "true" | "false"
should undefined be treated as a specific default. If this option remains undefined, the creation will throw
an error on undefined values
valueObjects/SafeBoolean.ts:94
• Optional name: string
the name of the ValueObject to identify in a possible ErrorMessage.
- eg:
'MealPlan.price'