vscode-docthis
vscode-docthis copied to clipboard
Documenting a destructuring parameter is wrong
prefer
/**
* Assign the project to an employee.
* @param {Object} employee - The employee who is responsible for the project.
* @param {string} employee.name - The name of the employee.
* @param {string} employee.department - The employee's department.
*/
Project.prototype.assign = function({ name, department }) {
// ...
};
but get
/**
*
*
* @param {*} { name, department }
* @return {*}
*/
Project.prototype.assign = function({ name, department }) {
// ...
};
https://jsdoc.app/tags-param.html Documenting a destructuring parameter
I came here to report exactly the same. This is a great extension, but this is will make it even better.
Nice, accepted suggestion. I will implement this in next week.
@oouo-diogo-perdigao any progress?