JSDoc how to document array of arrays and boolean or other types for returns?

Viewed 1862

I have a function that returns a array like this: [ [true, true], true] where index 0 is an array of boolean and second a boolean. How can I document this in JSDoc return type.

I have tried: @returns {[boolean[], boolean]} which produces "unable to parse.."..."invalid type expression.." error.

1 Answers
Related