Skip to content

Object.keys to use keyof #13254

Closed
Closed
@staeke

Description

@staeke

TypeScript Version: 2.1.1

Code
With the latest keyof feature in TypeScript, I'd expect Object.keys() to return them. In code:

interface ObjectConstructor {
  ...
  keys<T>(o: T): Array<keyof T>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions