Domain event emitted when a note is deleted.
Part of the event-driven architecture for cross-cutting concerns like notifications, logging, and analytics.
const event = new NoteDeletedEvent({ title: "Deleted Note", userId: "user-123", caller: "deleteNote",});// event.eventType === "note.deleted"await eventHandler.handle(event); Copy
const event = new NoteDeletedEvent({ title: "Deleted Note", userId: "user-123", caller: "deleteNote",});// event.eventType === "note.deleted"await eventHandler.handle(event);
Creates a new NoteDeletedEvent.
Event data containing deletion details
The function/method that triggered the event
The title of the deleted note
The user who deleted the note
Readonly
The type of event (e.g., "article.created")
Contextual information about the event
Event-specific data
Domain event emitted when a note is deleted.
Remarks
Part of the event-driven architecture for cross-cutting concerns like notifications, logging, and analytics.
Example
See