Stone.js API
    Preparing search index...

    Interface AdapterHookType<AdapterContextType, RawResponseType>

    AdapterHook type.

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

    interface AdapterHookType<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[],
    >[]