Quantcast
Channel: Document collection (array of type) return value and parameter in JSDoc - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Wilt for Document collection (array of type) return value and parameter in JSDoc

$
0
0

In the documentation for JSDoc on http://usejsdoc.org/ there is an example given for an array with members of type MyClass. There are two possibilities. One looks like this:

@param{MyClass[]}

The other one like this:

@param{Array.<MyClass>}

Be aware of the . between Array and <.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>