DefinitelyTyped/types/axios-curlirize/index.d.ts
Steve Hankin 39299445bd fix: incorrect signature cause ts2345 (#40699)
* 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
2019-11-27 15:49:38 -08:00

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 { }