vscode-docthis icon indicating copy to clipboard operation
vscode-docthis copied to clipboard

[Feature] Cannot generate documentation for Arrow functions and Arrow methods

Open maxjf1 opened this issue 4 years ago • 4 comments

Currently, the extension doesn't support arrow functions and arrow function methods. VSCode has a basic support for it. For arrow functions, handling just like normal functions works fine. For arrow function methods, an additional tag @method is necessary, since JSDoc understand it as an class property.

maxjf1 avatar Dec 01 '20 20:12 maxjf1

I will analyze and give you feedback.

oouo-diogo-perdigao avatar Dec 03 '20 17:12 oouo-diogo-perdigao

Please also include support for something like:

export const myFunction = (el: Element): string => {
// function here
}

Currently, produces

export /**
 *
 *
 * @param {Element} el
 * @return {*}  {string}
 */
const myFunction = (el: Element): string => {

af-mikecrowe avatar Dec 09 '20 12:12 af-mikecrowe

i also need this methods.

noonhorse avatar Dec 19 '20 10:12 noonhorse

One workaround to this, it's using @function before the parameters, like this:

image

malarahfelipe avatar Mar 31 '21 21:03 malarahfelipe