interface IDomainEvent Since 0.1.0 A domain event. Type Parameters T = unknown The event payload type Properties readonly type: string Event type name (e.g. "UserCreated"). readonly id: string Unique event ID. readonly occurredOn: Date When the event occurred. readonly data: T The event payload. readonly optional aggregateId: string ID of the aggregate that produced the event, when applicable. readonly optional version: number Aggregate version, for event-sourced aggregates.