Fix bug: Get merged module symbol in forEachExternalModule (#24295)

This commit is contained in:
Andy
2018-05-21 10:48:50 -07:00
committed by GitHub
parent c09cc70ebe
commit 440291e316
2 changed files with 37 additions and 1 deletions

View File

@@ -498,7 +498,7 @@ namespace ts.codefix {
}
for (const sourceFile of allSourceFiles) {
if (isExternalOrCommonJsModule(sourceFile)) {
cb(sourceFile.symbol, sourceFile);
cb(checker.getMergedSymbol(sourceFile.symbol), sourceFile);
}
}
}