Skip to content

IntervalCreationOptions

Christian Prinz edited this page Oct 17, 2022 · 1 revision

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

Table of contents

Properties

Properties

max

Optional max: number

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

Defined in

valueObjects/ValueObject.ts:174


min

Optional min: number

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

Defined in

valueObjects/ValueObject.ts:170


name

Optional name: string

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

  • eg: 'MealPlan.price'

Inherited from

CreationOptions.name

Defined in

valueObjects/ValueObject.ts:157

DDD basics - v0.0.1

Clone this wiki locally