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

    Type Alias ErrorInterceptor

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

    An interceptor that can recover from errors.

    Return values:

    • void — rethrow the error
    • KinetexResponse — recover with a synthetic response
    • throw — replace with a different error

    Type Declaration