Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
triyambakam
on July 9, 2023
|
parent
|
context
|
favorite
| on:
The Concise TypeScript Book
If you mean traditional enums, called unions in Typescript and represented by the pipe symbol, then nothing. But if you mean the named Enum keyword in Typescript, then the problem is that they emit runtime code and aren't type safe.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: