@types/axios-cancel
v0.2.6
Published
TypeScript definitions for axios-cancel
Readme
Installation
npm install --save @types/axios-cancel
Summary
This package contains type definitions for axios-cancel (https://github.com/thaerlabs/axios-cancel).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/axios-cancel.
index.d.ts
import { AxiosStatic } from "axios";
declare module "axios" {
interface AxiosRequestConfig {
requestId?: string | undefined;
}
interface AxiosStatic {
cancel: (requestId: string) => void;
cancelAll: () => void;
}
}
interface AxiosCancelOptions {
/**
* Enables logging
* default: false
*/
debug: boolean;
}
declare function axiosCancel(axiosStatic: AxiosStatic, options?: AxiosCancelOptions): void;
export default axiosCancel;
Additional Details
- Last updated: Mon, 11 May 2026 15:01:51 GMT
- Dependencies: axios
Credits
These definitions were written by TheDSCPL.
