Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blue_pants
on Jan 30, 2024
|
parent
|
context
|
favorite
| on:
Adding type safety to object IDs in TypeScript
The meaning is different though. Brands convey intent, UserId brand would allow only other UserId brands, but with string literal types "any" type that matches 'user_${string}' will do
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: