Skip to content

Commit c798389

Browse files
committed
Refactor code-style
1 parent cb45d5b commit c798389

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {one} from './one.js'
1515
*
1616
*/
1717
export function all(parent, ctx) {
18-
/** @type {Array.<Child>} */
18+
/** @type {Array<Child>} */
1919
const children = (parent && parent.children) || []
2020
let index = -1
21-
/** @type {Array.<string>} */
21+
/** @type {Array<string>} */
2222
const results = []
2323

2424
while (++index < children.length) {

lib/element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function element(node, ctx) {
2222
/** @type {Attributes} */
2323
const attributes = node.attributes || {}
2424
const close = content ? false : ctx.close
25-
/** @type {Array.<string>} */
25+
/** @type {Array<string>} */
2626
const attrs = []
2727
/** @type {string} */
2828
let key

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import {one} from './one.js'
4646
/**
4747
* Serialize the given xast tree (or list of nodes).
4848
*
49-
* @param {Node|Array.<Node>} node
49+
* @param {Node|Array<Node>} node
5050
* @param {Options} [options]
5151
* @returns {string}
5252
*/

lib/util-escape.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const noncharacter = /[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g
77
* Escape a string.
88
*
99
* @param {string} value
10-
* @param {Array.<string>} subset
10+
* @param {Array<string>} subset
1111
* @param {RegExp} [unsafe]
1212
* @returns {string}
1313
*/

0 commit comments

Comments
 (0)