Skip to content

Commit

Permalink
fix: improve InclusiveDescendant performance
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 16, 2025
1 parent b4e685d commit c623481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/complex-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {Visitor} from './index.js'
export type InclusiveDescendant<
Tree extends Node = never,
Found = void
> = Tree extends Parent
> = [Tree] extends [Parent]
?
| Tree
| InclusiveDescendant<
Expand Down

0 comments on commit c623481

Please sign in to comment.