News for hackers. Stuff that matters.
Re:Why doesn't TypeScript properly type Object.keys? by danielheath on Saturday June 24, 2023 @08:02AM (#36457942)
Did the comment you're replying to get edited? They are pretty explicitly talking about statically known type information, not runtime.
Re:Why doesn't TypeScript properly type Object.keys? by __ryan__ on Saturday June 24, 2023 @08:08AM (#36457981)
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.
Re:Why doesn't TypeScript properly type Object.keys? by danielheath on Saturday June 24, 2023 @08:31AM (#36458142)
Ahh, that makes sense then; thanks for clarifying.