You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>With the JSDoc tag dictionary (enabled by default):</p>
42
+
<p><code>@package</code>
43
+
</p>
44
+
<p>With the <ahref="https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler#jsdoc-tags">Closure Compiler</a> tag dictionary:</p>
45
+
<p><code>@package [{typeExpression}]</code>
46
+
</p>
47
+
<h2id="overview">Overview</h2>
48
+
<p>The <code>@package</code> tag marks a symbol as package-private. Typically, this tag indicates that a symbol is available only to code in the same directory
49
+
as the source file for this symbol. This tag is available in JSDoc 3.5.0 and later.</p>
50
+
<p>By default, symbols marked with the <code>@package</code> tag will appear in your documentation. In JSDoc 3.3.0 and later, you can use the <ahref="about-commandline.html"><code>-a/--access</code> command-line option</a> to change this behavior.
51
+
</p>
52
+
<p>The <code>@package</code> tag is equivalent to <code>@access package</code>.</p>
53
+
<h2id="examples">Examples</h2>
54
+
<p>In the following example, the instance member <code>Thingy#_bar</code> appears in the generated documentation, but with an annotation indicating that it is package-private:</p>
55
+
<figure>
56
+
<figcaption>Using the @package tag</figcaption><preclass="prettyprint lang-js"><code>/** @constructor */
<ahref="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the JSDoc 3 documentation project.
94
+
<br> This website is <ahref="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is licensed under the <arel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
0 commit comments