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

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: