Id<T> constructor

const Id<T>(
  1. T value
)

Constructs a new Id instance with the provided identifier value.

The constructor initializes the identifier with a value of type T, leveraging the immutability and value-based equality provided by SingleTypeValueObject.

  • Parameters:
    • value: The identifier value to encapsulate.

Implementation

const Id(super.value);