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 8dd5706 commit 44b13eeCopy full SHA for 44b13ee
src/compiler/checker.ts
@@ -29974,9 +29974,8 @@ namespace ts {
29974
const symbol = getSymbolOfNode(node);
29975
const target = resolveAlias(symbol);
29976
29977
- const shouldSkipWithJSRequireTargets = !isInJSFile(node) && moduleKind !== ModuleKind.ES2015;
29978
-
29979
- if (shouldSkipWithJSRequireTargets && target !== unknownSymbol) {
+ const shouldSkipWithJSExpandoTargets = symbol.flags & SymbolFlags.Assignment;
+ if (!shouldSkipWithJSExpandoTargets && target !== unknownSymbol) {
29980
// For external modules symbol represents local symbol for an alias.
29981
// This local symbol will merge any other local declarations (excluding other aliases)
29982
// and symbol.flags will contains combined representation for all merged declaration.
0 commit comments