I have a function that returns an array of two element. For given comments, VS code Intellisense is working fine, but when I generate docs using jsdoc, It throws the error.
ERROR: Unable to parse a tag's type expression for source file ... with tag title "returns" and text "{[state: initialState, dispatch: Function]}.
/**
* @typedef {object} initialState
* @property {string} locator_id - ID
* @property {boolean} loading -
*/
/**
* @namespace Context
*
* @returns {[state: initialState, dispatch: Function]}
*/