kinetex - v1.0.0-rc.1
    Preparing search index...

    Type Alias ResponseInterceptor

    ResponseInterceptor: (
        ctx: InterceptorContext,
    ) =>
        | void
        | KinetexResponse<unknown>
        | KinetexRequest
        | Promise<void | KinetexResponse<unknown> | KinetexRequest>

    An interceptor that can modify or replace a response, or trigger a retry.

    Return values:

    • void / undefined — pass through
    • KinetexResponse — replace the response
    • KinetexRequest — retry (re-run from dispatch)
    • throw — convert to error pipeline

    Type Declaration