Closed esamattis closed 10 years ago
It's not very javadoc compliant and not supported by Markdox yet but maybe something like that could be nice:
@param {String} document id
@param {Function} callback the callback function
@callback {Error|null} A possible error
@callback {Document} The document
Then you just need to add a custom formatter function and a custom template (https://github.com/cbou/markdox#advanced-usage)
For example I have a function called
getDoc
which takes two parameters, string for the document id and a function as a callback which itself must accept two parameters, an possible error object as first parameter and the document contents as second.It's used like this to be clear:
Something like?
Better ideas?