We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0363d9 commit 43c881bCopy full SHA for 43c881b
index.js
@@ -18,13 +18,13 @@
18
*/
19
20
/**
21
- * @typedef {Object} RemoveOptions
+ * @typedef RemoveOptions
22
* @property {boolean} [cascade] Whether to drop parent nodes if they had children, but all their children were filtered out test
23
24
25
import {convert} from 'unist-util-is'
26
27
-/** @type {Array.<Node>} */
+/** @type {Array<Node>} */
28
const empty = []
29
30
export const remove =
@@ -63,7 +63,7 @@ export const remove =
63
* @returns {Node|null}
64
65
function preorder(node, index, parent) {
66
- /** @type {Array.<Node>} */
+ /** @type {Array<Node>} */
67
// @ts-expect-error looks like a parent.
68
const children = node.children || empty
69
let childIndex = -1
0 commit comments