Stone.js API
    Preparing search index...

    Interface IAdapterHook<AdapterContextType, RawResponseType>

    AdapterHook Interface.

    Represents lifecycle hooks that can be defined for the adapter, such as initialization, pre-handling, and termination.

    interface IAdapterHook<AdapterContextType = any, RawResponseType = any> {
        onAdapterMiddlewareProcessed?: PipelineHookListener<
            AdapterContextType,
            IAdapterEventBuilder<
                RawResponseOptions,
                IRawResponseWrapper<RawResponseType>,
            >,
            any[],
        >;
        onBuildingIncomingEvent?: AdapterHookListener<AdapterContextType>;
        onBuildingRawResponse?: AdapterHookListener<AdapterContextType>;
        onHandlingAdapterError?: AdapterHookListener<AdapterContextType>;
        onProcessingAdapterMiddleware?: PipelineHookListener<
            AdapterContextType,
            IAdapterEventBuilder<
                RawResponseOptions,
                IRawResponseWrapper<RawResponseType>,
            >,
            any[],
        >;
        onStart?: AdapterHookListener<AdapterContextType>;
        onStop?: AdapterHookListener<AdapterContextType>;
    }

    Type Parameters

    • AdapterContextType = any
    • RawResponseType = any
    Index
    onAdapterMiddlewareProcessed?: PipelineHookListener<
        AdapterContextType,
        IAdapterEventBuilder<
            RawResponseOptions,
            IRawResponseWrapper<RawResponseType>,
        >,
        any[],
    >
    onBuildingIncomingEvent?: AdapterHookListener<AdapterContextType>
    onBuildingRawResponse?: AdapterHookListener<AdapterContextType>
    onHandlingAdapterError?: AdapterHookListener<AdapterContextType>
    onProcessingAdapterMiddleware?: PipelineHookListener<
        AdapterContextType,
        IAdapterEventBuilder<
            RawResponseOptions,
            IRawResponseWrapper<RawResponseType>,
        >,
        any[],
    >