@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
3 lines (2 loc) • 315 B
TypeScript
import type { ReducerCallback, Repository, RepoOption, EntityType } from '../types';
export declare const createRepository: <TEntity = any, TOutputEntity = any, TEvent = any>(entity: EntityType<TEntity>, callback: ReducerCallback<TEntity, TEvent>, option: RepoOption) => Repository<TEntity, TOutputEntity, TEvent>;