Microsoft/TypeScript
View on GitHub[BUG] Docs say es6 modules can't export class objects, but that's not true.
Open
#13,627 opened on Jan 23, 2017
DocsHelp Wanted
Repository metrics
- Stars
- (48,455 stars)
- PR merge metrics
- (Avg merge 6d 17h) (9 merged PRs in 30d)
Description
The docs say that
/*~ Note that ES6 modules cannot directly export class objects.
but modules can export classes, as in
export default
class Foo { /*...*/ }