Skip to content

Commit 43c881b

Browse files
committed
Refactor code-style
1 parent d0363d9 commit 43c881b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
*/
1919

2020
/**
21-
* @typedef {Object} RemoveOptions
21+
* @typedef RemoveOptions
2222
* @property {boolean} [cascade] Whether to drop parent nodes if they had children, but all their children were filtered out test
2323
*/
2424

2525
import {convert} from 'unist-util-is'
2626

27-
/** @type {Array.<Node>} */
27+
/** @type {Array<Node>} */
2828
const empty = []
2929

3030
export const remove =
@@ -63,7 +63,7 @@ export const remove =
6363
* @returns {Node|null}
6464
*/
6565
function preorder(node, index, parent) {
66-
/** @type {Array.<Node>} */
66+
/** @type {Array<Node>} */
6767
// @ts-expect-error looks like a parent.
6868
const children = node.children || empty
6969
let childIndex = -1

0 commit comments

Comments
 (0)