UNPKG

node-sagas-orchestrator

Version:

Library for handling distributed transactions using an orchestrator

16 lines (15 loc) 477 B
import { Step } from './step'; export declare class SagaContext<T extends object = null> { private readonly steps; private _context; private currentStepIndex; private disabledSteps; constructor(steps?: Step<T>[], _context?: T); set context(ctx: T); get context(): T; set currentStep(index: number); get currentStep(): number; disableStep(key: string): void; enableStep(key: string): void; isStepDisabled(key: string): boolean; }