Adding jsdoc to overriding method makes inherited jsdoc disappear #43506
Labels
Domain: JSDoc
Relates to JSDoc parsing and type generation
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
When adding doc to a class for API level, if we add more doc inside the implementation, we lost some documentation !
ex here, i add
* @example $AA.method()
and if i add tag@implement
or any others in the childClass, we lost documentations from parent and for the API level.This image show tag:
@example $AA.method()
is removed!, because we add more doc inAA.method
!The expected behavior should be look like this (push docs and no replace) .
Work only if we add in parent , but should work if we add in child class.
Version : 1.55.0 (user setup)
Commit : c185983a683d14c396952dd432459097bc7f757f
Date : 2021-03-30T16:01:55.261Z
Electron : 11.3.0
Chrome : 87.0.4280.141
Node.js : 12.18.3
V8 : 8.7.220.31-electron.0
OS : Windows_NT x64 10.0.19042
Steps to Reproduce:
Add doc to
AA.method
will remove some docs in theA.method
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: