4 ms·
Nominal types have different use cases. Simple one, distinguishing `2` number with `2` currency in your domain.
by epolanski 3y ago
Nominal types have different use cases.
Simple one, distinguishing `2` number with `2` currency in your domain.
- lf-non 3y agoWe can use branded types to simulate nominal typing https://zod.dev/?id=brand https://zod.dev/?id=brand