don't consider type aliases to be a default declaration - fixes #1705
This commit is contained in:
parent
d41cb11545
commit
5899e9a0be
@ -132,6 +132,7 @@ var metadataVisitor = {
|
||||
var declar = this.get("declaration");
|
||||
if (declar.isStatement()) {
|
||||
var bindings = declar.getBindingIdentifiers();
|
||||
|
||||
for (var name in bindings) {
|
||||
var binding = bindings[name];
|
||||
formatter._addExport(name, binding);
|
||||
@ -143,6 +144,8 @@ var metadataVisitor = {
|
||||
exported: this.isExportDefaultDeclaration() ? "default" : name
|
||||
});
|
||||
}
|
||||
|
||||
if (declar.isTypeAlias()) return;
|
||||
}
|
||||
|
||||
if (this.isExportNamedDeclaration() && node.specifiers) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user