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
AstBuilder<ReplaceInterruptHandlerNode<TIn,TPayload,THandle>>
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Flow or actor input payload type. |
TPayload | unknown | Interrupt payload type. |
THandle | unknown | Runtime 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.