Microsoft/TypeScript

[BUG] Docs say es6 modules can't export class objects, but that's not true.

Open

#13,627 建立於 2017年1月23日

在 GitHub 查看
 (12 留言) (3 反應) (0 負責人)TypeScript (48,455 star) (6,726 fork)batch import
DocsHelp Wanted

描述

The docs say that

/*~ Note that ES6 modules cannot directly export class objects.

but modules can export classes, as in

export default
class Foo { /*...*/ }

貢獻者指南

[BUG] Docs say es6 modules can't export class objects, but that's not true. · Microsoft/TypeScript#13627 | Good First Issue