How can I tell JSDoc about the structure of the returned object. I found the syntax @return {{field1: type, field2: type, ...}} description and tried it:
var getEventLocation = function(e, type) { ... return {x: xLocation, y: yLocation}; }
While this has been successfully analyzed, the final documentation simply says:
Returns: The location of an event Type: Object
I am developing an API and need to let people know about the object they will receive. Is this possible in JSDoc? I am using JSDoc3.3.0-beta1.
javascript documentation-generation jsdoc code-documentation jsdoc3
BlackWolf Feb 27 '15 at 10:49 2015-02-27 10:49
source share