- transform<T, U, C>(node, ctx, f): Node<U>
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