getSuggestionForNonexistentModule -> getSuggestionForNonexistentExport

This commit is contained in:
Daniel Rosenwasser
2018-07-05 20:45:00 -07:00
parent b93845ae51
commit 32bb63cbcf
3 changed files with 4 additions and 4 deletions
+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 {