Tools/domain/DomainEvent.ts

6 lines
105 B
TypeScript

interface DomainEvent<T> {
readonly type: string;
readonly createdAt: Date;
readonly payload: T;
}