如何记录接受折叠对象参数的 JS 函数

时间:2021-07-07 17:42:55

标签: javascript documentation jsdoc

如何记录期望从对象折叠的函数参数?

/**
 * Adds two properties of the object.
 *
 * @param {Object} ? --- how to document different expected properties of object?
 */
function abc({prop1, prop3}) {
   return prop1 + prop3
}

0 个答案:

没有答案
相关问题