Google Apps Script Auto Generated Library Documentation

The jsdoc variant suported for libraries in Google Apps Script does not support documentation at the level you are looking for, only first-level functions. There is a relevant open bug report on this, but no response from Google. You can still write your jsdoc tags, and generate your documentation outside of the Google infrastructure. Take … Read more

Correct way to document open-ended argument functions in JSDoc

The JSDoc specs and Google’s Closure Compiler do it this way: @param {…number} var_args Where “number” is the type of arguments expected. The complete usage of this, then, would look like the following: /** * @param {…*} var_args */ function lookMaImVariadic(var_args) { // Utilize the `arguments` object here, not `var_args`. } Note the comment about … Read more