Skip to content

SafeBooleanOptions

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

Interface: SafeBooleanOptions

Options that every ValueObject must provide

Hierarchy

Table of contents

Properties

Properties

allowUndefinedAs

Optional allowUndefinedAs: "true" | "false"

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

Defined in

valueObjects/SafeBoolean.ts:94


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