@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
19 lines (18 loc) • 429 B
TypeScript
import { BaseEvent } from '../types';
export interface Increment extends BaseEvent {
readonly type: 'Increment';
payload: {
id: string;
desc: string;
tag: string;
};
}
export interface Decrement extends BaseEvent {
readonly type: 'Decrement';
payload: {
id: string;
desc: string;
tag: string;
};
}
export declare type CounterEvents = Increment | Decrement;