We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
TypeScript Version: 2.5.2 / nightly (2.6.0-dev.20170922)
Code tsconfig.json with noImplicitAny set to true:
noImplicitAny
{ "compilerOptions": { "target": "es5", "module": "commonjs", "strict": true, "noImplicitAny": true } }
Creating a variable without specifying a type:
let i; i = 5; i = "foo";
Expected behavior: Typescript compiler complains that i is implicit any.
i
Actual behavior: Typescript compile does not report any issue.
If I use typescript 2.0.10 (with adapted tsconfig.json) I get "error TS7005: Variable 'i' implicitly has an 'any' type." as expected.
The text was updated successfully, but these errors were encountered:
Actually it is a new feature.
#11263
Sorry, something went wrong.
Ah ok thanks, thats fine. Seems I got confused by VsCode which shows let i: any if I hover my mouse pointer over the statement i = 5.
let i: any
i = 5
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.5.2 / nightly (2.6.0-dev.20170922)
Code
tsconfig.json with
noImplicitAny
set to true:Creating a variable without specifying a type:
Expected behavior:
Typescript compiler complains that
i
is implicit any.Actual behavior:
Typescript compile does not report any issue.
If I use typescript 2.0.10 (with adapted tsconfig.json) I get "error TS7005: Variable 'i' implicitly has an 'any' type." as expected.
The text was updated successfully, but these errors were encountered: