UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

6 lines (5 loc) 359 B
import { Selector } from 'reselect'; import type { Commit } from '../../types'; import type { CommitInRedis } from '../types'; export declare type PickedCommit = Required<Pick<Commit, 'id' | 'entityName' | 'commitId' | 'mspId' | 'entityId' | 'events' | 'version' | 'signedRequest'>>; export declare const preSelector: Selector<[PickedCommit], CommitInRedis>;