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