tgandrews / atom-easy-jsdoc

JSDoc hot key for atom editor.
Other
41 stars 11 forks source link

Destructuring function argument #50

Closed albertbuchard closed 7 years ago

albertbuchard commented 7 years ago

That is probably a tricky one :)

**
 * fadeOut - Description
 *
 * @param {type}   sound                        Description
 * @param {object} Unknown                      Description
 * @param {null}   [Unknown.currentVolume=null] Description
 * @param {number} [Unknown.step=0.02]          Description
 * @param {number} [Unknown.threshold=0.02]     Description
 * @param {number} [Unknown.delayInMs=50]       Description
 *
 * @returns {type} Description
 */
function fadeOut(sound,
  {
    currentVolume = null,
    step = 0.02 ,
    threshold = 0.02,
    delayInMs = 50,
  }) { }

And if not possible to do it automatically, what would be the JSDoc way to write that manually ?

Thanks !

tgandrews commented 7 years ago

Did you mean to close this?