Upgrading from angularjs.TypeScript.DefinitelyTyped 2.1.6 to 3.1.2 removed accessibility of the static angular
variable I was using for module declaration files.
The following now gets an error that the symbol angular
cannot be properly resolved.
angular
.module("someModule")....
Resharper provides an option to import the variable from an external module, but this does not work.
Was the exposure of a global angular
variable in earlier versions an error? Was it not intended to be used in the way my project has used it?
It's a bug with Resharper 9.0. The fix is scheduled for the 9.1 release. You can do one of two things to remedy it now:
I still see it in there. I suppose it's because the new version of the file uses syntax that is new to TypeScript 1.4. Either upgrade your compiler or downgrade to an earlier version of the .d.ts file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With