@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
27 lines (26 loc) • 546 B
TypeScript
import type { BaseEntity } from '../../types';
export interface CounterCommands {
Increment: {
userId: string;
payload: {
id: string;
desc: string;
tag: string;
};
};
Decrement: {
userId: string;
payload: {
id: string;
desc: string;
tag: string;
};
};
}
export declare class Counter implements BaseEntity {
static entityName: string;
id: string;
desc: string;
tag: string;
value: number;
}