TransformImpl
Defined in: transform/transform-impl.ts:30
Runtime implementation of a transform.
Transforms are registered in a TransformRegistry and looked up by their namespace and name during plan execution.
Example
Section titled “Example”const parseJsonImpl: TransformImpl<string, JsonValue> = { namespace: 'core', name: 'parseJson', execute(input: string): JsonValue { return JSON.parse(input) }}Type Parameters
Section titled “Type Parameters”In = unknown
The input type the transform accepts
Out = unknown
The output type the transform produces
Properties
Section titled “Properties”
readonlyname:string
Defined in: transform/transform-impl.ts:34
Transform name within namespace (must match TransformAst.name)
namespace
Section titled “namespace”
readonlynamespace:string
Defined in: transform/transform-impl.ts:32
Package/module namespace (must match TransformAst.namespace)
Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
input,args?):Out|Promise<Out>
Defined in: transform/transform-impl.ts:43
Execute the transformation.
Parameters
Section titled “Parameters”In
Input value from the previous node
unknown
Optional arguments from the TransformAst
Returns
Section titled “Returns”Out | Promise<Out>
Transformed output (sync or async)