Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/howto-es2015-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export {
* Get the red, green, and blue values of a color.
* @function
* @param {string} color - A color, in hexadecimal format.
* @returns {Array.<number>} An array of the red, green, and blue values,
* @returns {Array<number>} An array of the red, green, and blue values,
* each ranging from 0 to 255.
*/
rgbify as toRgb
Expand Down
10 changes: 7 additions & 3 deletions content/en/tags-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ documented.
</td>
<td>
{% example "An array of MyClass instances." %}
<pre class="prettyprint"><code>{Array.&lt;MyClass&gt;}
<pre class="prettyprint"><code>{Array&lt;MyClass&gt;}
// or:
{MyClass[]}
</code></pre>
{% endexample %}

{% example "An object with string keys and number values:" %}
<pre class="prettyprint"><code>{Object.&lt;string, number&gt;}
<pre class="prettyprint"><code>{Object&lt;string, number&gt;}
</code></pre>
{% endexample %}

Expand All @@ -107,7 +107,11 @@ documented.
</td>
<td><p>
JSDoc supports Closure Compiler's syntax for defining array and object types.
</p>
<p>
The trailing period on an object type is supported, but not required (e.g.,
<code>Array.&lt;string&gt;</code>).
</p>
<p>
You can also indicate an array by appending <code>[]</code> to the type that is contained in the
array. For example, the expression <code>string[]</code> indicates an array of strings.
Expand Down Expand Up @@ -272,7 +276,7 @@ var props;
{% example "Example" %}

```js
/** @type {(string|Array.<string>)} */
/** @type {(string|Array&lt;string>)} */
var foo;
/** @type {number} */
var bar = 1;
Expand Down