Skip to content

Interface: BaseAbortHookASTNode<TType, THandle, TAbortMeta> ​

Defined in: ast/base/base-abort-hook-ast-node.ts:14

Domain-agnostic base AST node contract for step abort hooks (AbortHookASTNode).

Executed during .replaceWith() step promotion or .onLimitExceeded() cleanup to snapshot and reset dirty scope state before starting the replacement executable.

Extended by ​

Type Parameters ​

Type ParameterDefault typeDescription
TType extends stringstringString-literal discriminant of the abort hook node.
THandleunknownIsolation scope handle type operated on by the hook.
TAbortMeta extends Record<string, unknown>Record<string, unknown>Validated abort metadata shape attached to UniversalStepTelemetry.abortMeta.

Properties ​

PropertyModifierTypeDescriptionDefined in
__handleBrand?readonlyBivariantCallback<[handle: THandle], void>Phantom type brand binding the hook to its compatible scope handle type.ast/base/base-abort-hook-ast-node.ts:26
idreadonlystringLogical identifier of the abort hook.ast/base/base-abort-hook-ast-node.ts:22
metaSchemareadonlyZodType<TAbortMeta>Zod schema validating metadata returned by the abort hook executor.ast/base/base-abort-hook-ast-node.ts:24
typereadonlyTTypeUnique string-literal discriminant of the abort hook node.ast/base/base-abort-hook-ast-node.ts:20

Released under the MIT License.