Type Alias NodeVisitor

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

    A node visitor function.

    Type declaration

      • (node, parentNode?, property?): void
      • Parameters

        • node: NonRootResult

          the visited node.

        • OptionalparentNode: NonRootResult

          the parent node.

        • Optionalproperty: 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