8000 stricter definition of Object.keys; why not? · Issue #45390 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
stricter definition of Object.keys; why not? #45390
@abetaev

Description

@abetaev

why instead

keys(o: object): string[];

not to have

keys<T = Record<string, unknown>>(o: T): (keyof T)[];

?
are there any issues with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0