Recently we started having problems using jQuery in TypeScript with ReSharper. We have the officiel type declarations for jQuery referenced in our project.
But with ReSharper active we get errors everytime we use a jQuery method. ReSharper will read the returntype as "jQuery<HTMLElemenent>" even though it is defined as "<any>" in the declaration.
Here is an example:
Looking at the jQuery method "data" it is defined as <any>:
And the "index" is a <number>:
But for some weird reason ReSharper interprets it in another way. Disabling ReSharper removes the errors and the code compiles and runs as expected.