The options for a SafeBoolean:

  • allowUndefinedAs?: true | false - defaults to undefined which fails validation when the value is undefined

Hierarchy

Properties

allowUndefinedAs?: boolean

should undefined be treated as a specific default. If this option remains undefined, the creation will throw an error on undefined values

name?: string

the name of the ValueObject to identify in a possible ErrorMessage.

  • eg: 'MealPlan.price'

Generated using TypeDoc