Skip to content

Add types #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update types/index.d.ts
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
  • Loading branch information
guillaumegarcia13 and ChristianMurphy authored Mar 30, 2021
commit 598c89eb4e589089d95521005841dd55d8e3adf7
4 changes: 4 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ declare namespace remove {
* @param options Whether to drop parent nodes if they had children, but all their children were filtered out
* @param test is-compatible test (such as a type)
*/
declare function remove(
tree: Node,
test?: Test<Node>
): Node;
declare function remove(
tree: Node,
options: remove.RemoveOptions = {cascade: true},
Expand Down