Skip to content
Advertisement

JSDoc: arrow function params

I’m trying to document my code with JSDoc (EcmaScript 2015, WebStorm 12 Build 144.3357.8).

I have an arrow function which I want to document its parameters. This two examples work (I get auto-completion):

JavaScript

But when I want to document an arrow function in forEach function, for example, the auto-completion isn’t working (all of the below):

JavaScript

Has anyone managed to get this work?

Advertisement

Answer

Starting from the next EAP build, WebStorm will understand this:

JavaScript

Please look at WEB-19280 for details.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement