How do you document an array of objects as a parameter in JSDoc?
I just figured out the answer to my question :
It would look like this :
/**
*
* @param {{name:string, email:string}[]}
*
*/
In JSDoc there is an example given for an array with members of type MyClass
. It looks like this:
@param {Array.<MyClass>}
So then you can also do like this:
@param {Array.<Object>}
And then this also makes sense:
@param {Array.<{name:string, email:string}>}