Why was the 'angular' global variable removed from angularjs.TypeScript.DefinitelyTyped?

Upgrading from angularjs.TypeScript.DefinitelyTyped 2.1.6 to 3.1.2 the remote accessibility of the angular static variable that I used for the declaration files for the module.

Now a message appears stating that the angular character cannot be resolved correctly.

 angular .module("someModule").... 

Resharper provides the ability to import a variable from an external module, but this does not work.

Was an angular global variable error detected in earlier versions? Wasn't it intended to be used in the way my project used it?

+7
javascript angularjs typescript
source share
2 answers

This is a bug with Resharper 9.0. A fix is ​​planned for release 9.1. You can do one of two things to fix it now:

  • Disable Resharper by going to Tools-> Options-> Resharper-> Suspend. Note that you will lose all Resharper features and you probably want to enable VS Intellisense again.
  • Get the latest version 9.1 EAP if it’s more convenient for you to pre-release versions.
+13
source share

I still see it there. I suppose because the new version of the file uses the syntax new to TypeScript 1.4. Either upgrade your compiler, or upgrade to an earlier version of the .d.ts file.

+2
source share

All Articles