Skip to content

Commit

Permalink
fix: remove tcontext generic from publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 8, 2023
1 parent 6acdd1f commit d27bb59
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/interfaces/events/event-publisher.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ export interface IEventPublisher<EventBase extends IEvent = IEvent> {
* @param event The event to publish.
* @param context The context.
*/
publish<TEvent extends EventBase, TContext = unknown>(
event: TEvent,
context?: TContext,
): any;
publish<TEvent extends EventBase>(event: TEvent, context?: unknown): any;

/**
* Publishes multiple events.
* @param events The events to publish.
* @param context The context.
*/
publishAll?<TEvent extends EventBase, TContext = unknown>(
publishAll?<TEvent extends EventBase>(
events: TEvent[],
context?: TContext,
context?: unknown,
): any;
}

0 comments on commit d27bb59

Please sign in to comment.