If I define an object like this:
/**
* My Cool Object
* @constructor
*/
function MyCoolObject() {
/**
* Cool Method, private
* @param {!string} parameter
*/
function localMethod(parameter) {
// do stuff
}
// Export the method
this.exportedMethod = localMethod;
}
I'd like to know, if at all possible, how to tell JSDOC to use the annotation for localMethod
in exportedMethod
, or how can I annotate exportedMethod
, because if I do:
// Export the method
/**
* Cool Method
* @param {!string} parameter
*/
this.exportedMethod = localMethod;
JSDOC assumes it's a field rather than a method, then only uses the description, ignoring the @param
part.