Domain event emitted when an image is deleted.
Part of the event-driven architecture for cross-cutting concerns like notifications, logging, and analytics.
const event = new ImageDeletedEvent({ path: "01912c9a-5e8a-7b5c-8a1b-2c3d4e5f6a7b-image.jpg", userId: "user-123", caller: "deleteImage",});// event.eventType === "image.deleted"await eventHandler.handle(event); Copy
const event = new ImageDeletedEvent({ path: "01912c9a-5e8a-7b5c-8a1b-2c3d4e5f6a7b-image.jpg", userId: "user-123", caller: "deleteImage",});// event.eventType === "image.deleted"await eventHandler.handle(event);
Creates a new ImageDeletedEvent.
Event data containing deletion details
The function/method that triggered the event
The storage path of the deleted image
The user who deleted the image
Readonly
The type of event (e.g., "article.created")
Contextual information about the event
Event-specific data
Domain event emitted when an image is deleted.
Remarks
Part of the event-driven architecture for cross-cutting concerns like notifications, logging, and analytics.
Example
See