Skip to content

Key can't be number in Proxy #39272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jack-Works opened this issue Jun 26, 2020 · 1 comment
Closed

Key can't be number in Proxy #39272

Jack-Works opened this issue Jun 26, 2020 · 1 comment
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status. Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@Jack-Works
Copy link
Contributor

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

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Jun 26, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.1.0 milestone Jun 26, 2020
@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label Dec 11, 2020
@rbuckton
Copy link
Contributor

rbuckton commented Mar 9, 2021

Fixed in #35594

@rbuckton rbuckton closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status. Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

No branches or pull requests

3 participants