jsdoc
jsdoc copied to clipboard
@inheritdoc doesn't inherit constructor documentation
In the documentation generated by the following code, B's constructor does not inherit A's constructor documentation.
A is documented correctly but B's documentation is empty.
/**
* Does something with a number.
*
* @class
* @param {number} a - The number.
*/
function A(a) {
this.a = a;
}
/**
* @class
* @augments A
* @inheritdoc
*/
function B() {
A.apply(this, arguments);
}
Confirmed. I agree that this ought to work.
This is a similar case that fails, using the ES2015 class syntax:
class Parent {
/**
* Some docs go here!
*/
constructor() {
// Some stuff
}
}
/**
* @extends Parent
*/
class Child extends Parent {
/**
* @inheritdoc
*/
constructor() {
super();
// Some more stuff
}
}
Any update on this? I just incurred in the same problem as @eloquence :\
Same problem with inheritdoc
About 5 years after this issue was created it remains unsolved...
Any updates about this bug?
Any update by 2022? This is basic "must-have" functionality by now.
It's 2023, any update? It seems like a very reasonable, common request.