Jonathan Chan Jonathan Chan - 1 year ago 72
Javascript Question

Document collection (array of type) return value and parameter in JSDoc

How to document

return value (and parameters) in JSDoc when array elements can be either of the following:

  • A type (e.g.

  • An object literal.

Answer Source

As per doco @returns

 * @returns {Array} Lines from the file.
function readLines(filepath) {

Also see.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download