How can I document possible configuration properties in function argument in JSDOC:
/**
* N level expectimax AI.
*
* @param {object} cfg config
* cfg.minimaxDepth - limit for minimax search
* cfg.expectiDepth - limit for expectimax search
* cfg.weightFn - position weight function
*
* @constructor
*/
function expectimaxAI(brdEngine, cfg) { ... }
Which markup is to use for cfg.minimaxDepth
(cfg.*
) parameters?
Is it possible to document synthetic aiCfg
type and put reference to it as:
* @param {aiCfg} cfg config
or somehow else?