1

Using jsdoc, I'd like to have optional parameter (like when you start typing =split( and it shows the last 2 params are optional. Google's custom function page shows an example of jsdoc applied to a custom function but doesn't show optional params. It does point you to jsdoc, and if you browse there you will find that it lists two ways of showing optional parameters:

* @param {string} [somebody] - Somebody's name.
* @param {string=} somebody - Somebody's name.

with the second one being even a Google Closure Compiler syntax. But None of these worked.

I've check this and this, and the first link is basically my question, but the answer just says "Google doesn't support it", which I find to be a very non-compelling answer as I have not seem anywhere Google stating they don't support it. So, my question is, did anyone make it work or has answers to it?

Adriano_Pinaffo
  • 1,429
  • 4
  • 23
  • 46

0 Answers0