move down module TypeAlias check

This commit is contained in:
Sebastian McKenzie 2015-06-08 14:47:58 +01:00
parent f7ee6fbd20
commit 7fade101be

View File

@ -144,8 +144,6 @@ var metadataVisitor = {
exported: this.isExportDefaultDeclaration() ? "default" : name
});
}
if (declar.isTypeAlias()) return;
}
if (this.isExportNamedDeclaration() && node.specifiers) {
@ -208,7 +206,7 @@ var metadataVisitor = {
});
}
if (!t.isExportDefaultDeclaration(node)) {
if (!t.isExportDefaultDeclaration(node) && !declar.isTypeAlias()) {
var onlyDefault = node.specifiers && node.specifiers.length === 1 && t.isSpecifierDefault(node.specifiers[0]);
if (!onlyDefault) {
formatter.hasNonDefaultExports = true;