Should it be possible to use
@enum with
@lends? My use case is a custom Enum constructor that does some extra initialization. However, it looks like JSDoc 3 is treating the object literal as a separate,
undocumented node, so its members aren't added to the other node that has the same alias. Both have global scope.
define(function (require) {
"use strict";
var Enum = require("Enum");
/**
* Enum for visibility values
* @enum {string}
* @alias EVisibility
*/
var EVisibility = new Enum(
/** @lends EVisibility */
{
/**
* Visible on screen
*/
VISIBLE: "visible",
/**
* Invisible
*/
INVISIBLE: "invisible"
}
);
return EVisibility;
});