We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74cbb82 + e0d76d1 commit fcb9d93Copy full SHA for fcb9d93
src/services/refactors/installTypesForPackage.ts
@@ -12,7 +12,8 @@ namespace ts.refactor.installTypesForPackage {
12
registerRefactor(installTypesForPackage);
13
14
function getAvailableActions(context: RefactorContext): ApplicableRefactorInfo[] | undefined {
15
- if (context.program.getCompilerOptions().noImplicitAny) {
+ const options = context.program.getCompilerOptions();
16
+ if (options.noImplicitAny || options.strict) {
17
// Then it will be available via `fixCannotFindModule`.
18
return undefined;
19
}
@@ -60,4 +61,4 @@ namespace ts.refactor.installTypesForPackage {
60
61
return false;
62
63
-}
64
+}
0 commit comments