mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added the definition of the "axios-cancel" package
This commit is contained in:
parent
61cb4635e6
commit
e1a37a8340
15
types/axios-cancel/index.d.ts
vendored
15
types/axios-cancel/index.d.ts
vendored
@ -8,13 +8,22 @@ import {AxiosStatic} from "axios";
|
||||
|
||||
declare module 'axios' {
|
||||
export interface AxiosRequestConfig {
|
||||
requestId?: string;
|
||||
}
|
||||
requestId?: string
|
||||
};
|
||||
export interface AxiosStatic {
|
||||
cancel: (requestId: string) => void;
|
||||
cancelAll: () => void;
|
||||
}
|
||||
}
|
||||
|
||||
declare function axiosCancel(a: AxiosStatic): void;
|
||||
interface AxiosCancelOptions {
|
||||
/**
|
||||
* Enables logging
|
||||
* default: false
|
||||
*/
|
||||
debug: boolean
|
||||
}
|
||||
|
||||
declare function axiosCancel(axiosStatic: AxiosStatic, options?: AxiosCancelOptions): void;
|
||||
|
||||
export default axiosCancel;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user