0.2.5 • Published 6 months ago
@types/axios-cancel v0.2.5
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
// Type definitions for axios-cancel 0.2
// Project: https://github.com/thaerlabs/axios-cancel, https://www.npmjs.com/package/axios-cancel
// Definitions by: TheDSCPL <https://github.com/TheDSCPL>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
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: Wed, 07 Jul 2021 21:44:42 GMT
- Dependencies: @types/axios
- Global values: none
Credits
These definitions were written by TheDSCPL.