I have a function with an array of objects as a parameter and would like to describe this parameter (including the properties of the objects in the array) using JSDOC, as in this example:
function doSomething(filter) {
}
where the filter looks something like this:
filter = [
{id: 'session', value: 1},
{id: 'name', value: 'john'}
]
How can I document the properties idand valuein jsdoc3?
source
share