Look at the code down below. So I have an object, and I want to document the properties of it with jsdoc, and so I use the @property tag of jsdoc to document those properties of this myObject object. But, I also want to document more complex informations, like some code examples, not just only simple name, type and descriptions.
But in the documentation of this @property tag, they say we can only add those simple name or descriptions informations, and can not add more complex things (they say: "it does not allow you to provide @examples or similar complex information...").
/**
* An object with some simple properties
* @type {Object}
* @property {String} firstProperty This is the first property with a string value
* @property {Number} secondProperty This is the second property with a number value
*/
const myObject = {
firstProperty: 'This is the first property',
secondProperty: 33,
}
And from there you probably already know what I mean. I want to ask if there is a way to add example codes or more complex information about an object's properties using only JSDoc. Thank you so much!