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



Just my personal preference but using these string union types means that you don’t have to import the enum. Plus it’s less verbose and translates back to JS better than an enum does.

Really just a matter of preference though.




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

Search: