Skip to content

Check for --strict along with --noImplicitAny for code fix #19390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2017
Merged

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Oct 20, 2017

Fixes #19378

@mhegazy
Copy link
Contributor Author

mhegazy commented Oct 20, 2017

error related to gulp-typescript version.

@mhegazy mhegazy merged commit fcb9d93 into master Oct 20, 2017
@mhegazy mhegazy deleted the fix19378 branch October 20, 2017 23:48
@@ -12,7 +12,8 @@ namespace ts.refactor.installTypesForPackage {
registerRefactor(installTypesForPackage);

function getAvailableActions(context: RefactorContext): ApplicableRefactorInfo[] | undefined {
if (context.program.getCompilerOptions().noImplicitAny) {
const options = context.program.getCompilerOptions();
if (options.noImplicitAny || options.strict) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about strict: true with noImplicitAny: false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix up in #19427

@mhegazy
Copy link
Contributor Author

mhegazy commented Oct 21, 2017

You are right. Will fix it

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants