File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29974,9 +29974,9 @@ namespace ts {
29974
29974
const symbol = getSymbolOfNode(node);
29975
29975
const target = resolveAlias(symbol);
29976
29976
29977
- const shouldSkipWithJSRequireTargets = !isInJSFile(node) && moduleKind !== ModuleKind.ES2015 ;
29978
-
29979
- if (shouldSkipWithJSRequireTargets && target !== unknownSymbol) {
29977
+ const shouldSkipWithJSExpandoTargets = (symbol.flags & SymbolFlags.Assignment) ;
29978
+ // && isInJSFile(node) && moduleKind !== ModuleKind.ES2015;
29979
+ if (!shouldSkipWithJSExpandoTargets && target !== unknownSymbol) {
29980
29980
// For external modules symbol represents local symbol for an alias.
29981
29981
// This local symbol will merge any other local declarations (excluding other aliases)
29982
29982
// and symbol.flags will contains combined representation for all merged declaration.
You can’t perform that action at this time.
0 commit comments