Interface OptionalStringOptions

The options for an OptionalString:

  • regex?: RegExp - a regular expression the string has to match
  • min?: number - minimum required length of the string
  • max?: number - maximum allowed length of the string

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'
regex?: RegExp

a regular expression the given value must match

Generated using TypeDoc