Magek Framework
    Preparing search index...

    Interface EventHandlerInterface

    Interface for event handler classes. Event handlers must have a static handle method that processes events.

    Similar to CommandInterface, this describes the class itself (with static methods), not instances of the class.

    interface EventHandlerInterface {
        new EventHandlerInterface(...args: any[]): unknown;
        handle(
            event: EventInterface | NotificationInterface,
            register: Register,
        ): Promise<void>;
    }

    Hierarchy (View Summary)

    • Class<unknown>
      • EventHandlerInterface
    Index

    Constructors

    Methods

    Constructors

    Methods