WebStorm 6.0.1, JSDoc3, @callback
I'm having trouble getting WebStorm 6.0.1 to properly recognize the @callback tag in my JavaScript JSDocs. Does WebStorm support JSDoc3?
If there answer is "yes" I'll post a follow up question.
Cheers.
Please sign in to leave a comment.
Hello!
it doesn't. Please, vote for http://youtrack.jetbrains.com/issue/WEB-3574
Best regards,
Lena
Wow! That was not the answer I was expecting. I like WebStorm but I would have thought support for the latest JSDoc would be a no-brainer.
Thanks for your reply. I encourage others to vote too.
I have managed to use almost everything with the exception of the {{@callback}} annotation (WebStorm 7.0.3). For that one I have used a workaround:
I first document the callback as JSDoc3 would expect, so that it gets generated in the documentation files.
Now, since WebStorm still does not recognise this syntax, it will generate warnings if we try to use it as the type of our callback arguments. So, in the actual callback parameter, I simply use closure compiler syntax.
This, at least guarantees that the type is documented as expected by JSDoc3, and satisfies WebStorm for the time being. Later on, when WebStorm supports it, we can simply get rid of the closure compiler syntax and use the callback type instead.