Skip to content

Commit

Permalink
Gabritto/jsemitfixsilly (#50849)
Browse files Browse the repository at this point in the history
* delete unused test and refactor unneeded ternary

* add parens
  • Loading branch information
gabritto committed Sep 19, 2022
1 parent 3014dec commit 67f2b62
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 186 deletions.
7 changes: 3 additions & 4 deletions src/compiler/transformers/ts.ts
Expand Up @@ -2463,11 +2463,10 @@ namespace ts {
}

function shouldEmitAliasDeclaration(node: Node): boolean {
return isInJSFile(node)
? true
: compilerOptions.preserveValueImports
return isInJSFile(node) ||
(compilerOptions.preserveValueImports
? resolver.isValueAliasDeclaration(node)
: resolver.isReferencedAliasDeclaration(node);
: resolver.isReferencedAliasDeclaration(node));
}
}
}
77 changes: 0 additions & 77 deletions tests/baselines/reference/elidedJSImport2.js

This file was deleted.

50 changes: 0 additions & 50 deletions tests/baselines/reference/elidedJSImport2.symbols

This file was deleted.

55 changes: 0 additions & 55 deletions tests/baselines/reference/elidedJSImport2.types

This file was deleted.

0 comments on commit 67f2b62

Please sign in to comment.