Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
epolanski
on July 7, 2023
|
parent
|
context
|
favorite
| on:
TypeScript please give us reflection/runtime types
Nominal types have different use cases.
Simple one, distinguishing `2` number with `2` currency in your domain.
lf-non
on July 8, 2023
[–]
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:
Simple one, distinguishing `2` number with `2` currency in your domain.