How can I document an object property with the object properties expected?
For instance, if the object was this:
var Object = {
/**
*
*/
point: null
}
and the point had this structure:
{
x,
y
}
Is there anyway to say that the point should have the x and y property?
Well, of course I can do it in the description, but I was looking for a better way to do it, like in the params that we can do like this:
/**
* @param {Object} point
* @param {Number} point.x
* @param {Number} point.y
*/
You could always make a
Pointclass.Then
Other wise I would do