Function transform

  • Type Parameters

    • T
    • U
    • C extends {
          clone(): C;
      }

    Parameters

    • node: Node<T>
    • ctx: C
    • f: ((ctx: C, data: T, childIndex: number) => undefined | U)
        • (ctx, data, childIndex): undefined | U
        • Parameters

          • ctx: C
          • data: T
          • childIndex: number

          Returns undefined | U

    Returns Node<U>