镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Key can't be number in Proxy #39272

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

Metadata

Metadata

Labels

Needs InvestigationThis issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions