How to document following code fragment? When I leave it as it is Foo.bar
has no description. When I add @memberof
tag it will be documented as static property. Adding @instance
tag changes nothing. This is rather simple and common code pattern, so it should be easy to document, am I right? I hate jsdoc...
/**
* @namespace
*/
var ns;
(function (ns) {
'use strict';
/**
* Constructs class
* @class ns.Foo
*/
function Foo() {
}
/**
* Blabla
*/
Foo.prototype.bar = function () {
};
ns.Foo = Foo;
})(ns || (ns = {}));