UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

14 lines (13 loc) 480 B
import type { State } from '../../types'; export declare const getSuccessActionHandler: <TResult = any>(type: string) => (state: State, { payload: { tx_id: string, result: TResult }, }: { payload: { tx_id: any; result: any; }; }) => State; export declare const getErrorActionHandler: <TError = any>(type: string) => (state: State, { payload: { tx_id: string, error: TError }, }: { payload: { tx_id: any; error: any; }; }) => State;