We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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: Version 2.1.0-dev.20160712
Code
function test({a:any}) { }
Expected behavior: Should compile with --noImplicitAny (compiles fine with 1.8.0)
--noImplicitAny
Actual behavior: error TS7031: Binding element 'any' implicitly has an 'any' type.
The text was updated successfully, but these errors were encountered:
this is not a type annotation, this is a rename for the destructured propeortes. Please see http://www.typescriptlang.org/docs/handbook/variable-declarations.html#property-renaming
what you want is:
function test({a} : { a: any}) { }
Sorry, something went wrong.
Shouldn't it be bug for 1.8 then ?
I am sure there was one logged, could not find it. it should be fixed in latest typescript@next as well as [email protected]
typescript@next
[email protected]
match
I feel like a stronger error message should be emitted here. I don't think many people will easily find this.
No branches or pull requests
TypeScript Version: Version 2.1.0-dev.20160712
Code
Expected behavior:
Should compile with
--noImplicitAny
(compiles fine with 1.8.0)Actual behavior:
error TS7031: Binding element 'any' implicitly has an 'any' type.
The text was updated successfully, but these errors were encountered: