mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Check for noImplicitAny + strict correctelly
This commit is contained in:
@@ -13,7 +13,8 @@ namespace ts.refactor.installTypesForPackage {
|
||||
|
||||
function getAvailableActions(context: RefactorContext): ApplicableRefactorInfo[] | undefined {
|
||||
const options = context.program.getCompilerOptions();
|
||||
if (options.noImplicitAny || options.strict) {
|
||||
const noImplicitAny = options.noImplicitAny === undefined ? options.strict : options.noImplicitAny;
|
||||
if (noImplicitAny) {
|
||||
// Then it will be available via `fixCannotFindModule`.
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user