I just started to use JSDoc to (try to) start writing documentation. I have 4 global variables at the start of my js file:
var controller = -1,
action = 'none',
maxValue = 0,
URLs = [];
how can I document all of those inside an initial comment block? So far the only way I made it work was using a block code per variable in this way:
/**
* Some description.
* @type {number}
*/
var controller = -1,
/**
* Some description.
* @type {string}
*/
action = 'none',
/**
* Some description.
* @type {number}
*/
maxValue = 0,
/**
* Some description.
* @type {array}
*/
URLs = [];
Is this the only/correct way to do this?