Microsoft/TypeScript
[BUG] Docs say es6 modules can't export class objects, but that's not true.
オープン
#13,627 opened on 2017/01/23
DocsHelp Wanted
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
The docs say that
/*~ Note that ES6 modules cannot directly export class objects.
but modules can export classes, as in
export default
class Foo { /*...*/ }