method IDomainEvents.remove
IDomainEvents.remove(event: IDomainEvent): boolean

Removes the first pending reference that is strictly equal to event.

Event IDs are not collection identity; duplicate references are valid.

Parameters

The exact event reference to remove

Return Type

boolean

true when one matching reference was removed

Usage

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