JSdoc use variable as default value
I don't think jsdoc is prepared to substitute values, template-like. So an option here would be to document the constant, and make a reference to it, like so:
/**
* Default values for options
* @param {number} [ a = 1 ] - this is a
* And so on...
*/
const DEFAULTS = {
a: 1,
b: {
c: 2,
d: 3
}
}
export default class Popper {
/**
* Popper
* @param {Object} [options = DEFAULT] See [[DEFAULT]]
*/
constructor(options) {
...
That way the reader can properly be directed to these default values.