better-docs
better-docs copied to clipboard
Constructors show up in class listing
Per https://jsdoc.app/howto-es2015-classes.html:
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. ES 2015 classes are supported in JSDoc 3.4.0 and later.
I did just that, but if you look at https://cowwoc.github.io/requirements.js/3.1.1/docs/api/ you will notice that Configuration
, Requirements
show up twice in the class listing. One entry corresponds to the class. The other corresponds to the class's constructor.
Expected behavior: constructor should not show up under class listing.