UNPKG

node-sagas

Version:

Library for handling distributed transactions in the microservices architecture

12 lines (11 loc) 355 B
export declare class Step<T> { private invocation; private compensation; private readonly name; constructor(name?: string); setInvocation(method: (params: T) => void): void; setCompensation(method: (params: T) => void): void; invoke(params: T): Promise<void>; compensate(params: T): Promise<void>; getName(): string; }