Microsoft/TypeScript
[BUG] Docs say es6 modules can't export class objects, but that's not true.
开放
#13,627 创建于 2017年1月23日
DocsHelp Wanted
仓库指标
- 星标
- (108,860 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
The docs say that
/*~ Note that ES6 modules cannot directly export class objects.
but modules can export classes, as in
export default
class Foo { /*...*/ }