You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSDoc @param does not work for function variables #36633
functionmakeFoo(){return(x : number)=>{}}/** * @param x - Comment */constfoo=makeFoo();foo(/* No comment in hover */);/** * @param x - Comment */functionfoo2(x: number){}foo2(/* Comment in hover */)
And I'd like to add JSDoc to these variables, because the parameter names aren't very descriptive, by themselves (left, mid, right, arg, etc.). But it seems like the JSDoc for @param does not show up in hover on VS Code and the Playground.
I need this too, we use a specific pattern for exporting module where everything is defined under an object that's exported and the JSDoc autocompletes don't work:
constmodel=(module.exporst={});/** JSDoc tags will not autocomplete here */model.method=(param1,param2)=>{};
Activity
AnyhowStep commentedon Feb 5, 2020
Clarification:
There's hover for
foo/foo2. Those come up fine.There's also hover for each parameter. They come up as you fill up the argument list of the function call. The parameter hover is missing the JSDoc.
thanpolas commentedon Mar 5, 2020
I need this too, we use a specific pattern for exporting module where everything is defined under an object that's exported and the JSDoc autocompletes don't work:
A small screencast of the issue: https://d.pr/i/IPpCGR