UNPKG

node-sagas

Version:

Library for handling distributed transactions in the microservices architecture

13 lines (12 loc) 369 B
import { Saga } from './saga'; import Factory from './factory'; export declare class SagaBuilder<T> { private currentStep; private steps; private factory; setFactory(factory: Factory<T>): void; step(name?: string): this; invoke(method: (params: T) => void): this; withCompensation(method: (params: T) => void): this; build(): Saga<T>; }