Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSDoc ignores some functions

I have functions in this style:

/**
 * Here is my jsdoc comment
 */
Controller.add = function(req, res, next){}

My problem is that jsdoc ignores this comments. I just get a documentation for functions like this:

/**
 * Here is my jsdoc comment (which works fine)
 */
 function add(req, res, next){}

Do I miss a configuration? The documentation doc doesn't give me useful information.

Thanks

like image 363
mk029 Avatar asked Feb 16 '26 05:02

mk029


1 Answers

Just add in your comment a @alias In your example /** * Here is my jsdoc comment * @alias add */

like image 92
schaffioverflow Avatar answered Feb 17 '26 17:02

schaffioverflow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!