UNPKG

saga-transaction-lib

Version:

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

5 lines (4 loc) 202 B
import { TransactionContext } from '../types/transaction-context.type'; export interface IErrorHandler<TContext> { handleError(error: Error, context: TransactionContext<TContext>): Promise<void>; }