File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
/**
7
7
* Stringify one nlcst node or list of nodes.
8
8
*
9
- * @param {Root|Content|Content[] } node
9
+ * @param {Root|Content|Array< Content> } node
10
10
* @param {string } [separator='']
11
11
* @returns {string }
12
12
*/
@@ -20,7 +20,7 @@ export function toString(node, separator = '') {
20
20
// @ts -expect-error Looks like a literal.
21
21
if ( typeof node . value === 'string' ) return node . value
22
22
23
- /** @type {Array. <Content|Root> } */
23
+ /** @type {Array<Content|Root> } */
24
24
// @ts -expect-error Looks like a list of nodes or parent.
25
25
const children = ( Array . isArray ( node ) ? node : node . children ) || [ ]
26
26
@@ -29,7 +29,7 @@ export function toString(node, separator = '') {
29
29
return children [ 0 ] . value
30
30
}
31
31
32
- /** @type {Array. <string> } */
32
+ /** @type {Array<string> } */
33
33
const values = [ ]
34
34
35
35
while ( ++ index < children . length ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Stringify the given [nlcst][] node (or list of nodes).
49
49
50
50
###### Parameters
51
51
52
- * ` node ` ([ ` Node ` ] [ node ] or ` Array. <Node> ` )
52
+ * ` node ` ([ ` Node ` ] [ node ] or ` Array<Node> ` )
53
53
* ` separator ` (` string ` , default: ` '' ` ) — Value to delimit each item
54
54
55
55
###### Returns
You can’t perform that action at this time.
0 commit comments