Skip to content

Commit e7a4327

Browse files
committed
Refactor code-style
1 parent d0421b6 commit e7a4327

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* are assumed to be somewhat reasonably placed.
1515
* This option prevents searching giant documents for some comment
1616
* that probably won’t be found at the end.
17-
* @property {Content[]} [ignore=[]]
17+
* @property {Array<Content>} [ignore=[]]
1818
* Nodes to exclude from the resulting tree.
1919
* These are not counted towards `size`.
2020
*/
@@ -65,7 +65,7 @@ export function excerpt(tree, options = {}) {
6565
const replacement = {...node}
6666

6767
if ('children' in node) {
68-
/** @type {Content[]} */
68+
/** @type {Array<Content>} */
6969
const children = []
7070
let index = -1
7171

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ won’t be found at the end.
8888

8989
###### `options.ignore`
9090

91-
Nodes to exclude from the resulting tree (`Array.<Node>`).
91+
Nodes to exclude from the resulting tree (`Array<Node>`).
9292
These are not counted towards `size`.
9393

9494
###### Returns

0 commit comments

Comments
 (0)