@nestjs/cqrs 10.2.0 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,11 +5,11 @@ export interface IEventPublisher<EventBase extends IEvent = IEvent> {
|
|
|
5
5
|
* @param event The event to publish.
|
|
6
6
|
* @param context The context.
|
|
7
7
|
*/
|
|
8
|
-
publish<TEvent extends EventBase
|
|
8
|
+
publish<TEvent extends EventBase>(event: TEvent, context?: unknown): any;
|
|
9
9
|
/**
|
|
10
10
|
* Publishes multiple events.
|
|
11
11
|
* @param events The events to publish.
|
|
12
12
|
* @param context The context.
|
|
13
13
|
*/
|
|
14
|
-
publishAll?<TEvent extends EventBase
|
|
14
|
+
publishAll?<TEvent extends EventBase>(events: TEvent[], context?: unknown): any;
|
|
15
15
|
}
|