We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946a14f commit 4145fefCopy full SHA for 4145fef
src/compiler/checker.ts
@@ -30004,7 +30004,7 @@ namespace ts {
30004
function checkImportBinding(node: ImportEqualsDeclaration | ImportClause | NamespaceImport | ImportSpecifier) {
30005
checkCollisionWithRequireExportsInGeneratedCode(node, node.name!);
30006
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name!);
30007
- if (!isInJSFile(node)) {
+ if (!isInJSFile(node) || languageVersion < ScriptTarget.ES2020) {
30008
checkAliasSymbol(node);
30009
}
30010
0 commit comments