8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb7d76 commit 224ed94Copy full SHA for 224ed94
index.d.ts
@@ -176,8 +176,13 @@ export interface CancelTokenSource {
176
cancel: Canceler;
177
}
178
179
+export interface AxiosInterceptorOptions {
180
+ synchronous?: boolean;
181
+ runWhen?: (config: AxiosRequestConfig) => boolean;
182
+}
183
+
184
export interface AxiosInterceptorManager<V> {
- use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any): number;
185
+ use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;
186
eject(id: number): void;
187
188
0 commit comments