getSuggestionForNonexistentModule -> getSuggestionForNonexistentExport

This commit is contained in:
Daniel Rosenwasser committed 2018-07-05 20:45:00 -07:00
1 parent b93845ae51
commit 32bb63cbcf
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ namespace ts.codefix {
const importDeclaration = findAncestor(node, isImportDeclaration)!;
const resolvedSourceFile = getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration);
if (resolvedSourceFile && resolvedSourceFile.symbol) {
suggestion = checker.getSuggestionForNonexistentModule(node as Identifier, resolvedSourceFile.symbol);
suggestion = checker.getSuggestionForNonexistentExport(node as Identifier, resolvedSourceFile.symbol);
}
}
else {