s-private API Documentation - v3.8.1
    Preparing search index...

    Domain event emitted when a book is deleted.

    Part of the event-driven architecture for cross-cutting concerns like notifications, logging, and analytics.

    const event = new BookDeletedEvent({
    title: "Deleted Book",
    userId: "user-123",
    caller: "deleteBook",
    });

    // event.eventType === "book.deleted"
    await eventHandler.handle(event);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    eventType: string

    The type of event (e.g., "article.created")

    metadata: { caller: string; timestamp: Date; userId: string }

    Contextual information about the event

    Event-specific data