Skip to content

[Types]: type of parent should be Parent #17

@christianvoigt

Description

@christianvoigt

Hi, currently the type for Visitor is

  type Visitor<V extends Node> = (
    node: V,
    index: number,
    parent: Node
  ) => void | Action | Index | ActionTuple

I think the parent parameter should be of type Parent, as the type Node does not have a children property.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions