What level of TypeScript support should we expect?

What level of TypeScript support should we expect from IntelliJ IDEA / WebStorm in IntelliJ 13.0.1?

I filed a bunch of bugs for things that were definitely wrong, but I don't know if I should expect everything to work.

For example, overload resolution seems to work in that IntelliJ mostly recognizes various overload forms as valid and invalid, but when typing the method list for an object only includes one method out of many overload options. Example:

overload.png

See how in lines 23 - 25 there are valid calls to three overloads of creatQuery.  The first two fall into optional parameters being excluded but the third is clearly a separate overload.  However, when I type a fourth line, the method list for createQuery only includes one overload option.

Is this a bug?  Is there something I'm missing in how IntelliJ works with overload resolution?


Another aspect that brings me to ask about level of TypeScript suport is that there doesn't seem to be jsdoc support.  I spent a ton of time on my definitions file to make sure the library had jsdoc for everything, particularly it's new to me, but I don't see that documentation in IntelliJ.

Should I file bugs for things like this?

Thanks,

Sam

1 comment
Comment actions Permalink

Hello!

though we are investing into keeping our TypeScript support up-to-date with the latest changes in the language, there are still many bugs in Typescript support - this feature is rather new, plus the typescript itself changes from version to version, so that the code that used to be valid now fails to compile (and vice versa). Note also that bugs like 'bad code green' :) are treated as low priority issues - currently we re focused on 'red code' issues (valid syntax reported as invalid)

> when typing the method list for an object only includes one method out of many overload options

It's a bug. See http://youtrack.jetbrains.com/issue/WEB-8744

As for JSDoc, I can see that descriptions in doc comments are shown in quick doc (Ctrl+Q), but there are problems with types resolving (http://youtrack.jetbrains.com/issue/WEB-6393) and doc generation (http://youtrack.jetbrains.com/issue/WEB-8666)
Please feel free to file bugs for all JSDoc issues faced by you

0

Please sign in to leave a comment.