Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
afdbcreid
59 days ago
|
parent
|
context
|
favorite
| on:
Unconventional Ways to Cast in TypeScript
`as const` is a special annotation that lets the TypeScript compiler infers the more specific type `["foo"]` instead of `string[]`.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: