More about: Value Objects by Martin Fowler
This package aims to provide usual value objects for DDD implementations. Package provides the follow value object specifications:
Value Object | Encapsules |
---|---|
BooleanValueObject | boolean |
NumberValueObject | number |
StringValueObject | string |
EmailValueObject | string |
JWTAccessToken | string |
PasswordValueObject | string |
PhoneNumberValueObject | string |
IdentifierValueObject | string |
UUIDValueObject | string |
DateValueObject | Date |
ArrayValueObject<T> | T[] |
EnumValueObject<T> | T[] |
RecordValueObject | Record<string | number, string | number> |