Stone.js API
    Preparing search index...

    Interface IComponentEventHandler<IncomingEventType, OutgoingResponseType>

    Represents a component event handler.

    interface IComponentEventHandler<
        IncomingEventType extends IIncomingEvent,
        OutgoingResponseType = unknown,
    > {
        handle?: FunctionalEventHandler<IncomingEventType, OutgoingResponseType>;
        head?: (options: any) => Promiseable<HeadContext>;
        render: (options: any) => unknown;
    }

    Type Parameters

    • IncomingEventType extends IIncomingEvent

      The type representing the incoming event.

    • OutgoingResponseType = unknown

      The type representing the outgoing response.

    Index
    head?: (options: any) => Promiseable<HeadContext>
    render: (options: any) => unknown