Skip to content

Commit 598c89e

Browse files
Update types/index.d.ts
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
1 parent 200fc95 commit 598c89e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ declare namespace remove {
1717
* @param options Whether to drop parent nodes if they had children, but all their children were filtered out
1818
* @param test is-compatible test (such as a type)
1919
*/
20+
declare function remove(
21+
tree: Node,
22+
test?: Test<Node>
23+
): Node;
2024
declare function remove(
2125
tree: Node,
2226
options: remove.RemoveOptions = {cascade: true},

0 commit comments

Comments
 (0)