Skip to content

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.

const parseJsonImpl: TransformImpl<string, JsonValue> = {
namespace: 'core',
name: 'parseJson',
execute(input: string): JsonValue {
return JSON.parse(input)
}
}

In = unknown

The input type the transform accepts

Out = unknown

The output type the transform produces

readonly name: string

Defined in: transform/transform-impl.ts:34

Transform name within namespace (must match TransformAst.name)


readonly namespace: string

Defined in: transform/transform-impl.ts:32

Package/module namespace (must match TransformAst.namespace)

execute(input, args?): Out | Promise<Out>

Defined in: transform/transform-impl.ts:43

Execute the transformation.

In

Input value from the previous node

unknown

Optional arguments from the TransformAst

Out | Promise<Out>

Transformed output (sync or async)