UNPKG

axios-retryer

Version:

axios-retryer is an advanced Axios request manager offering intelligent retry logic with token refresh, concurrency control, priority queuing, and a flexible plugin architecture, all built with TypeScript for robust HTTP client integrations.

18 lines (17 loc) 609 B
import 'axios'; import type { AxiosRetryerRequestPriority, RetryMode } from './index'; import type { AxiosRetryerBackoffType } from './types'; declare module 'axios' { interface AxiosRequestConfig { __retryAttempt?: number; __requestRetries?: number; __requestMode?: RetryMode; __requestId?: string; __isRetrying?: boolean; __priority?: AxiosRetryerRequestPriority; __timestamp?: number; __backoffType?: AxiosRetryerBackoffType; __retryableStatuses?: (number | [number, number])[]; __isRetryRefreshRequest?: boolean; } }