Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructors show up in class listing #240

Open
cowwoc opened this issue Jan 28, 2023 · 0 comments
Open

Constructors show up in class listing #240

cowwoc opened this issue Jan 28, 2023 · 0 comments

Comments

@cowwoc
Copy link

cowwoc commented Jan 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant