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;
    };
};

貢獻者指南