I have an object that contains multiple methods and is a member of a class. How would I document this with JSDoc?
Here's my attempt. With this SomeClass#helperFunctions
is documented, but both of it's methods are omitted.
/**
* @class SomeClass
* @param name
*/
var SomeClass = function(name) {};
/**
* @member SomeClass#helperFunctions
*/
SomeClass.prototype.helperFunctions = {
/**
* @method SomeClass#helperFunctions.doSomething
* @param {Array} arr
*/
doSomething: function(arr) {}
};
/**
* @method SomeClass#helperFunctions.doSomethingElse
* @param {Array} arr
*/
SomeClass.protype.helperFunctions.doSomethingElse = function(arr) {};