axios-error-redact
    Preparing search index...

    Function createErrorInterceptor

    • Simple factory function to create an error interceptor for axios

      Returns (
          error: AxiosError<unknown, any> | null | undefined,
      ) => Promise<HttpErrorResponse | Error | null | undefined>

      error interceptor for axios