Skip to content

Interface: ReplaceInterruptBuilder<TIn, TPayload, THandle> ​

Defined in: builders/replace-interrupt-builder.ts:14

Compiled builder returned by InterruptEdgeBuilder.replaceWith(replacementExecutable, mapReplacementInput).

Wraps the deeply frozen ReplaceInterruptHandlerNode so it can be returned from .onInterrupt(interrupt, $intr => $intr.replaceWith(...)) callbacks.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownFlow or actor input payload type.
TPayloadunknownInterrupt payload type.
THandleunknownRuntime handle type of the active isolation scope.

Methods ​

toAST() ​

ts
toAST(): ReplaceInterruptHandlerNode<TIn, TPayload, THandle>;

Defined in: builders/replace-interrupt-builder.ts:26

Compiles and returns the deeply frozen ReplaceInterruptHandlerNode.

Preserves the bound abort hook, replacement executable, and replacement input mapper.

Returns ​

ReplaceInterruptHandlerNode<TIn, TPayload, THandle>

Frozen replace interrupt handler node.

Overrides ​

AstBuilder.toAST

Released under the MIT License.