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 Len for Document collection (array of type) return value and parameter in JSDoc

$
0
0

Although you may find that the guidance given in some of the other answers works for you, I prefer this syntax:

/** * @return {Array<String>} ... */

And in comparison to the guidance others have offered, I think this is closer to your expectation based on the example you give in your question.

Here's great source for information on JSDoc:https://wiki.servoy.com/display/DOCS/JSDoc+Annotations

Edit: fixed moved link - thanks @hc_dev for noticing


Viewing all articles
Browse latest Browse all 6

Trending Articles



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