Y
Hacker News
new
|
ask
|
show
|
jobs
by
cyco130
58 days ago
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.