UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

8 lines (7 loc) 371 B
import type { RedisearchDefinition } from '../../queryHandler/types'; import type { Counter } from '.'; export declare type CommonCounterFields = Pick<Counter, 'id' | 'value' | 'desc' | 'tag'>; export declare type DerivedCounterFields = { event: string; }; export declare type CounterIndexDefintion = RedisearchDefinition<CommonCounterFields & DerivedCounterFields>;