Can I use the spread operator to create typedefs by combining existing typedefs?
For example- given typedefs One
and Two
where both are objects, how do I then create typedef Three
? JSDoc seems to let me do the following, but the “spreading” doesn’t seem to be properly reflected in the generated html docs:
/**
* @typedef {Object} Three
* @property {...One}
* @property {...Two}
*/
How do you create new object typedefs using previously defined object typedefs?