You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inherited Documentation, Abstract Documentation, Class Extend Documentation
Problem
There currently doesn't seem to be a way to inherit documentation for properties or methods implemented from abstract classes (might also be the case when extending classes, haven't checked).
Suggested Solution
Documentation for a property or method you implement should be inherited from the abstract class you implemented unless an override is present.
e.x.
abstractclassA{/** * This is the description for a. */abstracta: string;/** * This is the description for print. * @returns {void} */abstractprint(): void;}classBimplementsA{// The description for 'a' will be inherited from A - 'This is the description for a.'publica: string='b';// The description and additional attributes for 'print' will be inherited from A.publicprint(): void{console.log(this.a);}}classCimplementsA{// The description for 'a' will be overriden/** * This is a new description for a. */publica: string='b';// The description for 'print' will be overriden/** * This is a new description for print. * @returns {void} new return description */publicprint(): void{console.log(this.a);}}
The text was updated successfully, but these errors were encountered:
Search Terms
Inherited Documentation, Abstract Documentation, Class Extend Documentation
Problem
There currently doesn't seem to be a way to inherit documentation for properties or methods implemented from abstract classes (might also be the case when extending classes, haven't checked).
Suggested Solution
Documentation for a property or method you implement should be inherited from the abstract class you implemented unless an override is present.
e.x.
The text was updated successfully, but these errors were encountered: