-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
(bug) short-hand module declaration not working in combination with 'noImplicitAny' #10191
Comments
Actually from the source code
At the very least, the error message you got is bad. @mhegazy @andy-ms @RyanCavanaugh do we really want to consider this an implicit any? The entire point of |
I don't see why we should make you write a type annotation either. It's just ceremony and the thing you have to write is very awkward. |
but the module import is typed implicitly as any. how is this different from |
the question here is why use |
mhegazy I would be happy, If I could say
but AFAIK there is just no way to do this. |
TypeScript Version: 2.1.0-dev.2016080
Code
Trying to declare a module with the new short-hand syntax like this:
leads to the following TypeScript-Compiler error
I also can't find a way to make this "explicit any".
Expected behavior:
new shorthand syntax for module-declaration should also work with 'noImplicitAny' activated
The text was updated successfully, but these errors were encountered: