Skip to content

Type of tree should be Node? #6

Closed
@agoose77

Description

@agoose77

Initial checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🤷 no/invalidThis cannot be acted upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions