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

One neat trick for TypeScript branded types is to use { "~brand": "SOME BRAND" } instead of { __brand: "SOME BRAND" }. __brand shows up at the top of the autocomplete keys where "~brand" shows at the bottom.


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

Search: