@nestjs/cqrs 10.2.4 → 10.2.5
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.
- package/dist/aggregate-root.d.ts +2 -2
- package/package.json +1 -1
package/dist/aggregate-root.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare abstract class AggregateRoot<EventBase extends IEvent = IEvent> {
|
|
|
58
58
|
* @param event The event to apply.
|
|
59
59
|
* @param isFromHistory Whether the event is from history.
|
|
60
60
|
*/
|
|
61
|
-
apply<T extends EventBase = EventBase>(event: T, isFromHistory
|
|
61
|
+
apply<T extends EventBase = EventBase>(event: T, isFromHistory?: boolean): void;
|
|
62
62
|
/**
|
|
63
63
|
* Applies an event.
|
|
64
64
|
* If auto commit is enabled, the event will be published immediately (note: must be merged with the publisher context in order to work).
|
|
@@ -69,7 +69,7 @@ export declare abstract class AggregateRoot<EventBase extends IEvent = IEvent> {
|
|
|
69
69
|
* @param event The event to apply.
|
|
70
70
|
* @param options The options.
|
|
71
71
|
*/
|
|
72
|
-
apply<T extends EventBase = EventBase>(event: T, options
|
|
72
|
+
apply<T extends EventBase = EventBase>(event: T, options?: {
|
|
73
73
|
fromHistory?: boolean;
|
|
74
74
|
skipHandler?: boolean;
|
|
75
75
|
}): void;
|