die heldin script add
This commit is contained in:
28
node_modules/axios-auth-refresh/dist/model.d.ts
generated
vendored
Normal file
28
node_modules/axios-auth-refresh/dist/model.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { AxiosError, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
export interface AxiosAuthRefreshOptions {
|
||||
statusCodes?: Array<number>;
|
||||
/**
|
||||
* Determine whether to refresh, if "shouldRefresh" is configured, The "statusCodes" logic will be ignored
|
||||
* @param error AxiosError
|
||||
* @returns boolean
|
||||
*/
|
||||
shouldRefresh?(error: AxiosError): boolean;
|
||||
retryInstance?: AxiosInstance;
|
||||
interceptNetworkError?: boolean;
|
||||
pauseInstanceWhileRefreshing?: boolean;
|
||||
onRetry?: (requestConfig: AxiosRequestConfig) => AxiosRequestConfig | Promise<AxiosRequestConfig>;
|
||||
/**
|
||||
* @deprecated
|
||||
* This flag has been deprecated in favor of `pauseInstanceWhileRefreshing` flag.
|
||||
* Use `pauseInstanceWhileRefreshing` instead.
|
||||
*/
|
||||
skipWhileRefreshing?: boolean;
|
||||
}
|
||||
export interface AxiosAuthRefreshCache {
|
||||
skipInstances: AxiosInstance[];
|
||||
refreshCall: Promise<any> | undefined;
|
||||
requestQueueInterceptorId: number | undefined;
|
||||
}
|
||||
export interface AxiosAuthRefreshRequestConfig extends AxiosRequestConfig {
|
||||
skipAuthRefresh?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user