diff --git a/package.json b/package.json index 2a36778..698a3ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nestjs-geteventstore", - "version": "5.0.16", + "version": "5.0.17π", "description": "Event Store connector for NestJS-Cqrs", "author": "Vincent Vermersch ", "contributors": [ diff --git a/src/interfaces/config/read-event-bus-config.type.ts b/src/interfaces/config/read-event-bus-config.type.ts index 76c7860..300b6b2 100644 --- a/src/interfaces/config/read-event-bus-config.type.ts +++ b/src/interfaces/config/read-event-bus-config.type.ts @@ -1,4 +1,4 @@ -import { ReadEventOptionsType, IReadEvent } from '../events'; +import { ReadEventOptionsType, IReadEvent, IBaseEvent } from '../events'; import { IEventBusPrepublishConfig } from './event-bus-prepublish-config.interface'; type EventMapperType = ( @@ -6,12 +6,8 @@ type EventMapperType = ( options: ReadEventOptionsType, ) => IReadEvent | null; -type EventConstructorType = new ( - ...args: any[] -) => T; - export type ReadEventBusConfigType = IEventBusPrepublishConfig & { eventMapper?: EventMapperType; - allowedEvents?: { [key: string]: EventConstructorType }; + allowedEvents?: { [key: string]: IBaseEvent }; };