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
declareclassBaseClass{baseFunc(): void;baseFuncOverridden(): void;}declareclassDerivedClassextendsBaseClass{derivedFunc(): void;baseFuncOverridden(): void;baseFunc(): void;// <-- REDFINED BASE CLASS MEMBER}
Althought this might seem fine, it can actually causes issues in multiple cases. Such as if the derived class is private, because then tsd-jsdoc tries to re-define public base members in a private derived class, which results in the following:
[TSD-JSDoc] Failed to find parent of doclet 'baseFunc' using memberof 'DerivedClass', this is likely due to invalid JSDoc.
[TSD-JSDoc] Failed to find parent of doclet 'baseFuncOverridden' using memberof 'DerivedClass', this is likely due to invalid JSDoc.
And when you have many such cases the log is filled with warnings that shouldn't be there.
The text was updated successfully, but these errors were encountered:
Currently, if a class extends another, all base members will be re-defined in the extended class. So the following JS code:
Will result in the following typescript code
Althought this might seem fine, it can actually causes issues in multiple cases. Such as if the derived class is private, because then
tsd-jsdoc
tries to re-define public base members in a private derived class, which results in the following:And when you have many such cases the log is filled with warnings that shouldn't be there.
The text was updated successfully, but these errors were encountered: