Skip to content

Key can't be number in Proxy #39272

Closed
Closed

Description

TypeScript Version: 3.7.x-dev.201xxxxx

Search Terms:

Code

new Proxy({}, { get(target, key) {
    // key is type number | string | symbol which is impossible.
})

Expected behavior:

key be string | symbol

Actual behavior:

key be number | string | symbol

image

Activity

  1. added
    Needs Investigation
    on Jun 26, 2020
  2. added
    Rescheduled
    on Dec 11, 2020
  3. rbuckton commented on Mar 9, 2021

    @rbuckton
    Contributor

    Fixed in #35594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs InvestigationRescheduled

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy