Tools/domain/DomainEvent.ts

6 lines
120 B
TypeScript
Raw Normal View History

2024-03-10 09:49:36 +00:00
export default interface DomainEvent<T> {
readonly type: string;
readonly createdAt: Date;
readonly payload: T;
}