File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
* are assumed to be somewhat reasonably placed.
15
15
* This option prevents searching giant documents for some comment
16
16
* that probably won’t be found at the end.
17
- * @property {Content[] } [ignore=[]]
17
+ * @property {Array< Content> } [ignore=[]]
18
18
* Nodes to exclude from the resulting tree.
19
19
* These are not counted towards `size`.
20
20
*/
@@ -65,7 +65,7 @@ export function excerpt(tree, options = {}) {
65
65
const replacement = { ...node }
66
66
67
67
if ( 'children' in node ) {
68
- /** @type {Content[] } */
68
+ /** @type {Array< Content> } */
69
69
const children = [ ]
70
70
let index = - 1
71
71
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ won’t be found at the end.
88
88
89
89
###### ` options.ignore `
90
90
91
- Nodes to exclude from the resulting tree (` Array. <Node> ` ).
91
+ Nodes to exclude from the resulting tree (` Array<Node> ` ).
92
92
These are not counted towards ` size ` .
93
93
94
94
###### Returns
You can’t perform that action at this time.
0 commit comments