Skip to content

New definition of PropertyKey does not observe the keyofStringsOnly setting #24945

Closed
@pelotom

Description

@pelotom

TypeScript Version: 2.9.2

Search Terms: PropertyKey keyofStringsOnly

Code

In lib.es5.d.ts, we have now

declare type PropertyKey = string | number | symbol;

however this seems incorrect if "keyofStringsOnly": true. So as to observe that setting, it seems like it should be

declare type PropertyKey = keyof any;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions