Stone.js API
    Preparing search index...

    Interface MatcherOptions<IncomingEventType, OutgoingResponseType>

    Options for route matchers.

    interface MatcherOptions<
        IncomingEventType extends IIncomingEvent = IIncomingEvent,
        OutgoingResponseType = unknown,
    > {
        event: IncomingEventType;
        route: Route<IncomingEventType, OutgoingResponseType>;
    }

    Type Parameters

    • IncomingEventType extends IIncomingEvent = IIncomingEvent

      The type representing the incoming HTTP event.

    • OutgoingResponseType = unknown

      The type representing the outgoing HTTP response.

    Index

    The incoming HTTP event to be matched.

    The route definition to match against.