Re:Value Objects – DDD with TypeScript
by spankalee on Monday April 08, 2019 @12:26AM
(#19602077)
You can do much better than just a type alias in TypeScript, and get specializations of primitives that type check and compile away.
Here, p2 has an error because a string is not assignable to a Path.
[ Parent
| on HN ]