Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
latest
Link to runnable example
No response
Steps to reproduce
Passing in a Node
type to findAndReplace
causes tsc
to complain. Yet, it appears from the call to visitParents
that tree
should really be Node
, not Nodes
.
Expected behavior
The compilation should succeed
Actual behavior
The compiler complains
Affected runtime and version
node@22.6.0, typescript@5.6.3
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response