UNPKG

saga-transaction-lib

Version:

A TypeScript library for implementing the Saga pattern to manage distributed transactions and complex workflows

6 lines (5 loc) 169 B
export interface IStep<TContext, TResult = any> { name: string; invoke(context: TContext): Promise<TResult>; compensate(context: TContext): Promise<void>; }