mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* fix: incorrect signature cause ts2345 Test incorrectly used a static Axios config and needed to pass an Axios Instance since the Axios module is updated to inject an interceptor * docs: corrected author url
21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
// Type definitions for axios-curlirize 1.3
|
|
// Project: https://github.com/delirius325/axios-curlirize#readme
|
|
// Definitions by: Steven Hankin <https://github.com/stevenhankin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = AxiosCurlirize;
|
|
|
|
import { AxiosInstance } from 'axios';
|
|
|
|
interface Result {
|
|
command: string;
|
|
}
|
|
|
|
interface Callback {
|
|
(result: Result, error: Error): void;
|
|
}
|
|
|
|
declare function AxiosCurlirize(instance: AxiosInstance, callback?: Callback): void;
|
|
|
|
declare namespace AxiosCurlirize { }
|