method IDomainEvents.record
IDomainEvents.record<T>(event: IDomainEvent<T>): void

Appends an event reference to the pending facts in insertion order.

Type Parameters

The event payload type

Parameters

The fact raised by this aggregate

Return Type

void

Usage

import { type IDomainEvents } from "events-plugin/src/index.ts";