Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
danielheath
on June 24, 2023
|
parent
|
context
|
favorite
| on:
Why doesn't TypeScript properly type Object.keys?
Did the comment you're replying to get edited? They are pretty explicitly talking about statically known type information, not runtime.
__ryan__
on June 24, 2023
[–]
They’re suggesting
outputting
runtime type information by emitting different code based on the type of the value passed to their hypothetical “Type.keys()” function.
danielheath
on June 24, 2023
|
parent
[–]
Ahh, that makes sense then; thanks for clarifying.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: