Microsoft/TypeScript

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

Offen

#13.627 geöffnet am 23.01.2017

 (12 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)TypeScript (13.395 Forks)batch import
DocsHelp Wanted

Repository-Metriken

Stars
 (108.860 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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