Microsoft/TypeScript

Declaration emit for private identifiers in class expressions is wrong

Open

#36,548 创建于 2020年1月31日

在 GitHub 查看
 (3 评论) (2 反应) (0 负责人)TypeScript (6,726 fork)batch import
BugDomain: Declaration EmitHelp WantedRescheduled

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

Code

const O = class { #g }

Expected behavior:

declare const O = class { #private }

Actual behavior:

declare const O: {
    new (): {
        "__#1@#g": any;
    };
};

贡献者指南