Skip to content

Interface: ReplaceWithPromotionParams<TIn, THandle> ​

Defined in: runtime/flow/replace-with-promotion-params.ts:14

Parameters for promoting a .replaceWith(replacementActor, mapInput) handler on a flow step (SPEC.md §3.6 & §3.9).

Supplies the active FlowExecutionContext, the aborted stepExecId, the replacement executable, the projected replacement input, and optional abortHook.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated flow input payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
abortHook?readonlyAbortHookASTNode<THandle>Optional abort hook AST node executed before replacement step start.runtime/flow/replace-with-promotion-params.ts:28
baseScopeCheckpointreadonlystring | undefinedBase scope checkpoint captured at the start of the interrupted step.runtime/flow/replace-with-promotion-params.ts:22
flowCtxreadonlyFlowExecutionContext<TIn, THandle>Active flow execution context.runtime/flow/replace-with-promotion-params.ts:16
replacementExecutablereadonlyStepASTNode<unknown, unknown, THandle>Replacement executable AST node to promote and run.runtime/flow/replace-with-promotion-params.ts:24
replacementInputreadonlyTInProjected replacement input produced by handler.mapReplacementInput(...).runtime/flow/replace-with-promotion-params.ts:26
stepExecIdreadonlystringStep execution identifier of the interrupted step being replaced.runtime/flow/replace-with-promotion-params.ts:18
stepIdreadonlystringLogical step identifier in flow.nodes.runtime/flow/replace-with-promotion-params.ts:20
stepTelemetry?readonlyUniversalStepTelemetry<Record<string, unknown>, Record<string, unknown>>Optional pre-computed UniversalStepTelemetry snapshot for the interrupted step.runtime/flow/replace-with-promotion-params.ts:30

Released under the MIT License.