I am currently developing a Library for Google Apps Script that basically treats a spreadsheet as a database object.
Currently, the library has a two identical functions like
/**
* Opens and creates a query object for a spreadsheet with the given url.
*
* @param {String} the url of the spreadsheet
* @return {SpreadsheetQuery_} a spreadsheet query object for the given spreadsheet
*/
function openByUrl(url) {
return new SpreadsheetQuery_(SpreadsheetApp.openByUrl(url));
}
now, for the two public functions, the documentation generated only shows the return type and not the parameter nor the instructions attached. I am assuming this is a google issue and not really bothered.
But my main question is this, as the functions are instantiating an object from the private function, how can I get the auto documentation to show methods that exist on that object.
All the functionality will be provided by the object and it will be great if GAS could show the methods on it.
NOTE
The methods are all placed on the prototype of the function.
eg.
SpreadsheetQuery_.prototype.from = function (sheet) {
if (_.isNumeric(sheet)) {
....
}
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…