Skip to content

Commit f1f2b20

Browse files
authored
Override commit(), to please TypeScript typing (#28)
1 parent 2b4fb57 commit f1f2b20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/cqrs/event-store.aggregate-root.ts

+4
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ export abstract class EventStoreAggregateRoot extends AggregateRoot {
3030
// TODO log if not replaced
3131
return;
3232
}
33+
34+
async commit(): Promise<void> {
35+
return super.commit() as unknown as Promise<void>;
36+
}
3337
}

0 commit comments

Comments
 (0)