我正在努力使用 jsdoc-toolkit 以以下格式记录代码。在我看来,我使用的标签应该会产生预期的结果,但事实并非如此。相反,它警告 Class 是未记录的(因为它仅在闭包内定义)并且不包括 Class 在命名空间的成员列表中。
如果可能的话,我想在不使用@name 标签的情况下记录这一点。任何人都可以帮忙吗?
/**
* @namespace The original namespace
*/
var namespace = function () {
// private
/**
* @private
*/
function _privateMethod () {
};
/**
* This is the detail about the constructor
* @class This is the detail about the class
* @param {Object} argone The first argument
* @param {Object} argtwo The second argument
*/
var Class = function (argone, argtwo) {
/**
* A public member variable
*/
this.member = "a member";
};
/**
* A public method
* @param {Object} argone The first argument
*/
Class.prototype.publicMethod = function (argone) {
};
return /** @lends namespace */ {
Class: Class
}
}();