Skip to content

Reflect.ownKeys has overly wide type definition #34626

Closed
@jdalton

Description

@jdalton

Reflect.ownKeys has a return type definition of PropertyKey[] which is defined as
declare type PropertyKey = string | number | symbol; but the method of ownKeys only returns (string | symbol)[].

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions