【发布时间】:2020-01-30 16:02:46
【问题描述】:
我想为从基类继承的函数覆盖 jsdoc。
函数向基函数添加参数。
父母:
export default class Base {
/**
* Function apply().
*
* Apply the hook.
*
* @param {{}} args
*
* @returns {Boolean}
*/
apply( args ) {
throw Error( 'apply() must be implanted.' );
}
}
孩子:
export default class Child extends Base {
/**
* how to override jsdoc and point out that i
* have added containers param?
*/
apply( args, containers ) {
}
}
【问题讨论】:
标签: javascript ecmascript-6 jsdoc