wip
This commit is contained in:
10
packages/shared/domain/IDomainEvent.ts
Normal file
10
packages/shared/domain/IDomainEvent.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface IDomainEvent<T = any> {
|
||||
readonly eventType: string;
|
||||
readonly aggregateId: string;
|
||||
readonly eventData: T;
|
||||
readonly occurredAt: Date;
|
||||
}
|
||||
|
||||
export interface IDomainEventPublisher {
|
||||
publish(event: IDomainEvent): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user