Skip to content

Conversation

@Dima-Dim
Copy link

@Dima-Dim Dima-Dim commented May 4, 2020

Object.keys(o) does not return an array of strings, but an array of keys o.

Fixes #

Object.keys(o) does not return an array of strings, but an array of keys o.
@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented May 4, 2020

This is likely not doing what you think it is. First off, typeof will give you {} and keyof typeof {} will give you never. If you wanted to make it generic to have Object.keys return keyof T for a parameter type of T, this is a duplicate of #37495

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants