UNPKG

node-sagas-orchestrator

Version:

Library for handling distributed transactions using an orchestrator

10 lines (9 loc) 382 B
import { Step } from './step'; import { SagaFlow } from './saga-flow'; import { Saga } from './saga'; import { SagaContext } from './saga-context'; export default class Factory<T extends object = null> { createSaga(steps: Step<T>[], ctx: SagaContext<T>): Saga<T>; createSagaFlow(steps: Step<T>[], ctx: SagaContext<T>): SagaFlow<T>; createStep(name?: string): Step<T>; }