Options
All
  • Public
  • Public/Protected
  • All
Menu

A value object's representation.

Value objects are objects that matter only as the combination of their attributes. Two value objects with the same values for all their attributes are considered equal.

Example:

class Address extends ValueObject<{ street: string; streetNumber: string }> {
}

const address = new Address({ street: 'Street A' })

Type parameters

Hierarchy

  • ValueObject

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

props

props: T

Methods

equals

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Protected property
  • Private property
  • Static method

Generated using TypeDoc