mk029
mk029

Reputation: 43

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

Upvotes: 3

Views: 214

Answers (1)

schaffioverflow
schaffioverflow

Reputation: 510

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

Upvotes: 2

Related Questions