How to comment the Jsdoc function when it has deconstruction parameters

/**
 * 
 * @param {String} unit
 * @param {Number} item
 */
function foo(name,age) {
    return {name, age}
}

foo("Luke",18)

/**
 * 
 * @param {String} ??? 
 * @param {Number} ??? 
 */
function bar({name,age}) {
    return {name, age}
}

bar({
  age: 18
  name: "Luke"
})
< hr >

the second function can be written this way without deliberately arranging the input order of the parameters, but what should I do if I want to use JsDoc comments?


/**
 * @param {Object} option - foo
 * @param {String} option.name - bar
 * @param {Number} option.age - baz
 */
function bar({name,age}) {
    return {name, age}
}

JSDOC find Documenting a destructuring parameter

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a7ee-2c1fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a7ee-2c1fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?