Skip to content

Commit

Permalink
fix: make options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 9, 2023
1 parent 2bbc193 commit ab3bccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aggregate-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export abstract class AggregateRoot<EventBase extends IEvent = IEvent> {
*/
apply<T extends EventBase = EventBase>(
event: T,
isFromHistory: boolean,
isFromHistory?: boolean,
): void;
/**
* Applies an event.
Expand All @@ -100,7 +100,7 @@ export abstract class AggregateRoot<EventBase extends IEvent = IEvent> {
*/
apply<T extends EventBase = EventBase>(
event: T,
options: { fromHistory?: boolean; skipHandler?: boolean },
options?: { fromHistory?: boolean; skipHandler?: boolean },
): void;
apply<T extends EventBase = EventBase>(
event: T,
Expand Down

0 comments on commit ab3bccf

Please sign in to comment.