Microsoft/TypeScript

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

Open

#13,627 opened on 2017年1月23日

GitHub で見る
 (12 comments) (3 reactions) (0 assignees)TypeScript (48,455 stars) (6,726 forks)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 { /*...*/ }

コントリビューターガイド