Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Description
Motivation
Many people who use libraries not only use help of jsdoc for methods, but also for the parameters. So, moving the jsdoc declaration from beforeclass
to beforeconstructor
would definitely help many beginners using this library. Then, the descriptions would show up for the parameters as well.
Examples
No response
Possible workarounds
The possible workaround is that instead of moving the jsdoc completely to beforeconstructor
, the description can stay beforeclass
but the@param
needs to be moved to beforeconstructor
Additional information
You don't need to use tags such as
@class
and@constructor
with ES 2015 classes—JSDoc automatically identifies classes and their constructors simply by parsing your code.
as stated by thedocumentation for classes