-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[Feature Request] skip --noImplicitAny checks when using _
#14154
Comments
I don't think that it should be ignored. You can use |
_
doesn't get ignored with --noImplicitAny_
doesn't skip check with --noImplicitAny
_
doesn't skip check with --noImplicitAny_
doesn't skip check with --noImplicitAny
I don't think I'd want to skip implicit any checks using the underscore. It's currently used for ignoring the unused parameter. Is this a bug report, regression or feature request? |
_
doesn't skip check with --noImplicitAny_
doesn't skip check with --noImplicitAny
_
doesn't skip check with --noImplicitAny_
@blakeembrey Feature Request since I don't think this was working before. I need the parameter there so I can pass it to |
Underscore has no special meaning in pure javascript. It is valid identifier for variable. To skip unused argument you can write like this:
|
Thanks @Strate ! This was your first suggestion too :) |
TypeScript Version: Version 2.3.0-dev.20170217
Code
Expected behavior:
skip errors "noImplicitAny": when using
_
Actual behavior:
[ts] Parameter '_' implicitly has an 'any' type.
The text was updated successfully, but these errors were encountered: