Interface IntervalCreationOptions

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

Hierarchy

Properties

Properties

max?: number

the upper bound of the interval the value has to be in

min?: number

the lower bound of the interval the value has to be in

name?: string

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

  • eg: 'MealPlan.price'

Generated using TypeDoc