Typescript Plugin doesn't recognize generics and minor file watcher problem

It seems that the Typescript plugin can't handle the new Typescript generic syntax.

Example:

var x : Array;

Gives a red square in Intellij 12.4.

But the code works.

And it seems as if the Typescript file watcher plugin only works on every second save.

BTW: I'm on MAC OS X 10.8.4

Regards
  Roger

---
Original message URL: http://devnet.jetbrains.net/message/5494684#5494684

3 comments
Comment actions Permalink

Hi Roger,

Please ensure that HTML library is enabled in Settings | JavaScript | Libraries. We use JavaScript libraries for TypeScript in 12.1 branch.
Alternatively, you can add lib.d.ts file manually. 0.9 syntax including generics is supported only in 13 EAP, so please add lib.d.ts from TypeScript 0.8, e.g. release-0.8.3 branch in https://typescript.codeplex.com/SourceControl/latest#typings/lib.d.ts

Regards,
Konstantin

0
Comment actions Permalink

Are you going to support 0.9 (or higher) version in 12.x version of IDEA?

0
Comment actions Permalink

No, we are not backporting anything to 12.x version, maybe only fixes to the most critical bugs.

0

Please sign in to leave a comment.