When using an object literal to define a class (for example with the @lends
tag) the @constructs
tag allows you to document that a particular function will be used to construct instances of that class.
@constructs [<name>]
var Person = makeClass( /** @lends Person.prototype */ { /** @constructs */ initialize: function(name) { this.name = name; }, /** Describe me. */ say: function(message) { return this.name + " says: " + message; } } );
makeClass('Menu', /** * @constructs Menu * @param items */ function (items) { }, { /** @memberof Menu# */ show: function(){ } } );
© 2011–2017 the contributors to the JSDoc 3 documentation project
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://usejsdoc.org/tags-constructs.html