The options for a SafeDate:

  • max?: Date | string | number - maximum allowed date
  • min?: Date | string | number - earliest allowed date

Hierarchy

Properties

Properties

max?: string | number | Date

the latest allowed Date. Both Dates will be compared with their getTime() milliseconds.

min?: string | number | Date

the earliest allowed Date. Both Dates will be compared with their getTime() milliseconds.

name?: string

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

  • eg: 'MealPlan.price'

Generated using TypeDoc