Answer the question
In order to leave comments, you need to log in
Why doesn't Jsdoc work with closures?
I'm trying to deal with jsdoc - the thing seems to be interesting, but for some reason it does not document the code in the closure.
Those. there is a file:
(function() {
'use strict';
/**
* Represents a book.
* @constructor
* @param {string} title - The title of the book.
* @param {string} author - The author of the book.
*/
function Book(title, author) {}
})();
Answer the question
In order to leave comments, you need to log in
And have you tried this as well ?
It is suggested to use @name, @namespace , @lends
/**
* @name MyNamespace
* @namespace Hold all functionality
*/
(function () {
/** @lends MyNamespace
* Описание
*/
...
}());
/**
* @module constructors
*/
var app = (/** @lends module:constructors */ function() {
/**
* Описание
*/
...
}());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question