-
Notifications
You must be signed in to change notification settings - Fork 3k
Alpha.4 has many TS7006 error "implicitly has an any type" #2693
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
Comments
+1 In general current package structure do not fallow the "moduleResolution" : "node" rules. And is hard to integrate into the ts projects . Please look at structure of angular2. In general on root folder we should have what we currently have in commonjs folder. Bundles you can put in bundles (release) sub folder. and in same place you can put the bundled d.ts (just use tsc --module system -- outFile ... and tsc will generate the combined .d.ts) |
@armorik83 @majo44 Which package are you both referring to... the ng1 package? We now publish Then use |
Closing as |
Hey @christopherthielen , Unfortunately not fixing this issue means that users of the latest router will have to be on TypeScript 2.0 and have that option set given that using Would you be open to PRs to resolve this? I can provide a PR which will resolve this issue. It's just a case of taking a trip through the code and adding to method signatures an If you decided to upgrade the types to something more specific over time that would be completely open to you. Just to be clear: the only code change would be the adding of |
So I got bold @christopherthielen - I've made a PR that makes ui-router |
Awesome! |
@christopherthielen This not only produced error in the declaration files from ui-router but also in your own code if you do for example:
|
FYI I think
using |
Hi.
In alpha.4 & TS 1.8.9
"moduleResolution": "node", "noImplicitAny": true
I encountered many TS7006 errors. please describes
any
correctly. thanks.The text was updated successfully, but these errors were encountered: