@yield
@yields [{type}] [description]
The @yields tag documents the value that is yielded by a generator function. This tag is available in JSDoc 3.5.0 and later.
If you are documenting a regular function, use the @returns tag instead of this tag.
/**
* Generate the Fibonacci sequence of numbers.
*
* @yields {number}
*/
function* fibonacci() {}
/**
* Generate the Fibonacci sequence of numbers.
*
* @yields {number} The next number in the Fibonacci sequence.
*/
function* fibonacci() {}
© 2011–2017 the contributors to the JSDoc 3 documentation project
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://usejsdoc.org/tags-yields.html