Microsoft/TypeScript

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

Open

#13,627 opened on Jan 23, 2017

View on GitHub
 (12 comments) (3 reactions) (0 assignees)TypeScript (6,726 forks)batch import
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 { /*...*/ }

Contributor guide