Type alias NodeVisitor

NodeVisitor: ((node: NonRootResult, parentNode?: NonRootResult, property?: string) => void)

Type declaration

    • (node: NonRootResult, parentNode?: NonRootResult, property?: string): void
    • A node visitor function.

      Parameters

      • node: NonRootResult

        the visited node.

      • Optional parentNode: NonRootResult

        the parent node.

      • Optional property: string

        the property on the parent node that contains the visited node. It can be the node itself or an array of nodes.

      Returns void

Generated using TypeDoc