Microsoft/TypeScript
在 GitHub 查看[BUG] Docs say es6 modules can't export class objects, but that's not true.
Open
#13,627 创建于 2017年1月23日
DocsHelp Wanted
仓库指标
- Star
- (48,455 star)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 9 个 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 { /*...*/ }