diff --git a/src/interfaces/events/event-publisher.interface.ts b/src/interfaces/events/event-publisher.interface.ts index 29d36514..a4b9366a 100644 --- a/src/interfaces/events/event-publisher.interface.ts +++ b/src/interfaces/events/event-publisher.interface.ts @@ -6,18 +6,15 @@ export interface IEventPublisher { * @param event The event to publish. * @param context The context. */ - publish( - event: TEvent, - context?: TContext, - ): any; + publish(event: TEvent, context?: unknown): any; /** * Publishes multiple events. * @param events The events to publish. * @param context The context. */ - publishAll?( + publishAll?( events: TEvent[], - context?: TContext, + context?: unknown, ): any; }