UNPKG

node-sagas-orchestrator

Version:

Library for handling distributed transactions using an orchestrator

12 lines (11 loc) 369 B
import { SagaContext } from './saga-context'; import { Step } from './step'; export declare class SagaFlow<T extends object = null> { private readonly steps; private compensationSteps; private context; private sagaContextMediator; constructor(steps?: Step<T>[], ctx?: SagaContext<T>); invoke(): Promise<void>; compensate(): Promise<void>; }