File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
tests/baselines/reference Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -29974,7 +29974,7 @@ namespace ts {
2997429974 const symbol = getSymbolOfNode(node);
2997529975 const target = resolveAlias(symbol);
2997629976 if (target !== unknownSymbol) {
29977- // For external modules symbol represent local symbol for an alias.
29977+ // For external modules symbol represents local symbol for an alias.
2997829978 // This local symbol will merge any other local declarations (excluding other aliases)
2997929979 // and symbol.flags will contains combined representation for all merged declaration.
2998029980 // Based on symbol.flags we can compute a set of excluded meanings (meaning that resolved alias should not have,
@@ -30004,7 +30004,9 @@ namespace ts {
3000430004 function checkImportBinding(node: ImportEqualsDeclaration | ImportClause | NamespaceImport | ImportSpecifier) {
3000530005 checkCollisionWithRequireExportsInGeneratedCode(node, node.name!);
3000630006 checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name!);
30007- checkAliasSymbol(node);
30007+ if (!isInJSFile(node)) {
30008+ checkAliasSymbol(node);
30009+ }
3000830010 }
3000930011
3001030012 function checkImportDeclaration(node: ImportDeclaration) {
Original file line number Diff line number Diff line change @@ -258,4 +258,4 @@ namespace ts {
258258 isDebugInfoEnabled = true ;
259259 }
260260 }
261- }
261+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments