I have a class that takes an options object with a lot of configurations inside.
const DEFAULTS = {
a: 1,
b: {
c: 2,
d: 3
}
}
export default class Popper {
constructor(options) {
...
I'm documenting the options properties manually but I'd like to define the default value using the one of the DEFAULTS variable.
Something like the following doesn't work, how can I do?
@param {Object} [options.b=DEFAULTS.b] - The defaults b options
DEFAULTS.bproperty, I would like it to take the value from it. Nothing more to add honestly