Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

DomainEvent

Defined in: packages/ddd-core/domain/events/domain.event.ts:13

Base class for all domain events.

Carries a unique id (a time-sortable uuidv7) generated on construction unless one is supplied. Concrete events extend this to describe something that has happened in the domain.

protected new DomainEvent(id?): DomainEvent

Defined in: packages/ddd-core/domain/events/domain.event.ts:16

string

DomainEvent

readonly id: string

Defined in: packages/ddd-core/domain/events/domain.event.ts:14