Modeling Primitives as Value Objects in TypeScript
Introduction
When we model an entity we need to declare some properties with primitive types such as number or string. However, these types are so generic that they do not express the logic and rules behind the properties we need to model. We will co...
elkevincodea.hashnode.dev5 min read