vscode-docthis
vscode-docthis copied to clipboard
[Feature] Cannot generate documentation for Arrow functions and Arrow methods
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.
I will analyze and give you feedback.
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 => {
i also need this methods.
One workaround to this, it's using @function before the parameters, like this: