1+ <!DOCTYPE html>
2+ <!-- THIS IS A GENERATED FILE. DO NOT EDIT. -->
3+ < html lang ="en ">
4+
5+ < head >
6+ < meta charset ="utf-8 ">
7+ < meta name ="description " content ="Document the value yielded by a generator function. ">
8+ < title > Use JSDoc: @yields</ title >
9+ < link rel ="stylesheet " href ="styles/usejsdoc.css ">
10+ < link rel ="stylesheet " href ="styles/prettify.css ">
11+ < link rel ="stylesheet " href ="styles/css3-github-ribbon.css ">
12+ < script src ="scripts/prettify.js "> </ script >
13+ <!--[if lt IE 9]>
14+ <script src="scripts/html5shiv.min.js"></script>
15+ <script src="scripts/html5shiv-printshiv.min.js"></script>
16+ <![endif]-->
17+ </ head >
18+
19+ < body >
20+ < header >
21+ < a href ="./index.html "> @use JSDoc</ a >
22+ </ header >
23+ < article >
24+ < h1 > @yields</ h1 >
25+ < h2 > Table of Contents</ h2 >
26+ < ul >
27+ < li >
28+ < a href ="#synonyms "> Synonyms</ a >
29+ </ li >
30+ < li >
31+ < a href ="#syntax "> Syntax</ a >
32+ </ li >
33+ < li >
34+ < a href ="#overview "> Overview</ a >
35+ </ li >
36+ < li >
37+ < a href ="#examples "> Examples</ a >
38+ </ li >
39+ < li >
40+ < a href ="#related-links "> Related Links</ a >
41+ </ li >
42+ </ ul >
43+ < h2 id ="synonyms "> Synonyms</ h2 >
44+ < p >
45+ < code > @yield</ code >
46+ </ p >
47+ < h2 id ="syntax "> Syntax</ h2 >
48+ < p > < code > @yields [{type}] [description]</ code >
49+ </ p >
50+ < h2 id ="overview "> Overview</ h2 >
51+ < p > The < code > @yields</ code > tag documents the value that is yielded by a generator function. This tag is available in JSDoc 3.5.0 and later.</ p >
52+ < p > If you are documenting a regular function, use the < a href ="tags-returns.html "> < code > @returns</ code > tag</ a > instead of this tag.
53+ </ p >
54+ < h2 id ="examples "> Examples</ h2 >
55+ < figure >
56+ < figcaption > @yields tag with a type</ figcaption > < pre class ="prettyprint lang-js "> < code > /**
57+ * Generate the Fibonacci sequence of numbers.
58+ *
59+ * @yields {number}
60+ */
61+ function* fibonacci() {}
62+ </ code > </ pre >
63+ </ figure >
64+ < figure >
65+ < figcaption > @yields tag with a type and description</ figcaption > < pre class ="prettyprint lang-js "> < code > /**
66+ * Generate the Fibonacci sequence of numbers.
67+ *
68+ * @yields {number} The next number in the Fibonacci sequence.
69+ */
70+ function* fibonacci() {}
71+ </ code > </ pre >
72+ </ figure >
73+ < h2 id ="related-links "> Related Links</ h2 >
74+ < p >
75+ < a href ="tags-returns.html "> @returns</ a >
76+ </ p >
77+ </ article >
78+ < footer >
79+ < a class ="license-badge " href ="http://creativecommons.org/licenses/by-sa/3.0/ ">
80+ < img alt ="Creative Commons License " class ="license-badge " src ="images/cc-by-sa.svg " width ="80 " height ="15 " />
81+ </ a >
82+ < br > Copyright © 2011-2017 the
83+ < a href ="https://github.com/jsdoc3/jsdoc3.github.com/contributors "> contributors</ a > to the JSDoc 3 documentation project.
84+ < br > This website is < a href ="https://github.com/jsdoc3/jsdoc3.github.com "> open source</ a > and is licensed under the < a rel ="license " href ="http://creativecommons.org/licenses/by-sa/3.0/ ">
85+ Creative Commons Attribution-ShareAlike 3.0 Unported License</ a > .
86+ </ footer >
87+ < script type ="text/javascript ">
88+ prettyPrint ( ) ;
89+ </ script >
90+ </ body >
91+
92+ </ html >
0 commit comments