From 7eb31d4105781a2cb53de32dc95a96e3346fce74 Mon Sep 17 00:00:00 2001 From: Alexandre Decollas Date: Mon, 14 Feb 2022 11:07:05 +0100 Subject: [PATCH] fix type and bump v5.0.17 --- package.json | 2 +- src/interfaces/config/read-event-bus-config.type.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) 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 }; };