Skip to content

Interface: AskLeaseElevationConfig<TDecision> ​

Defined in: ast/ask-interrupt-handler-node.ts:15

Conditional capability lease elevation rule evaluated after a human authority responds to an .ask() interrupt handler.

Grants the LeaseDelta produced by leaseMapper to the outer interrupted actor when predicate(decision) returns true.

Type Parameters ​

Type ParameterDefault typeDescription
TDecisionunknownValidated human decision response type.

Properties ​

PropertyModifierTypeDescriptionDefined in
leaseMapperreadonlyBivariantCallback<[decision: TDecision], LeaseDelta>Synchronous mapper constructing the LeaseDelta granted to the interrupted actor.ast/ask-interrupt-handler-node.ts:19
predicatereadonlyBivariantCallback<[decision: TDecision], boolean>Synchronous predicate testing whether the human decision approves elevating a lease.ast/ask-interrupt-handler-node.ts:17

Released under the MIT License.