move down module TypeAlias check
This commit is contained in:
parent
f7ee6fbd20
commit
7fade101be
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user