Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nominal types have different use cases.

Simple one, distinguishing `2` number with `2` currency in your domain.



We can use branded types to simulate nominal typing

https://zod.dev/?id=brand




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: