From ed0ba0fd60e43cdf80b18aee767a9946acda6705 Mon Sep 17 00:00:00 2001 From: Jelle Schutter Date: Mon, 16 May 2022 09:08:02 +0200 Subject: [PATCH] allow type definition for axios instance methods (#4224) Co-authored-by: Jay --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 420a5ef..450a34c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -261,8 +261,8 @@ export class Axios { } export interface AxiosInstance extends Axios { - (config: AxiosRequestConfig): AxiosPromise; - (url: string, config?: AxiosRequestConfig): AxiosPromise; + , D = any>(config: AxiosRequestConfig): AxiosPromise; + , D = any>(url: string, config?: AxiosRequestConfig): AxiosPromise; defaults: Omit & { headers: HeadersDefaults & {