From 7b8c96746546d326c357e09f4280c67d1e679b22 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Mon, 27 Mar 2023 11:34:52 +0200 Subject: [PATCH] Revert AxiosStatic type to AxiosInstance as the module supports also child instances This reverts commit 3ccceaf4f926900f86242efb514e320e0b2226fd. --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index e066488..423bea3 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -import { AxiosAdapter, AxiosStatic, AxiosRequestConfig } from 'axios'; +import { AxiosAdapter, AxiosInstance, AxiosRequestConfig } from 'axios'; type CallbackResponseSpecFunc = ( config: AxiosRequestConfig @@ -55,7 +55,7 @@ type RequestMatcherFunc = ( ) => MockAdapter.RequestHandler; declare class MockAdapter { - constructor(axiosInstance: AxiosStatic, options?: MockAdapterOptions); + constructor(axiosInstance: AxiosInstance, options?: MockAdapterOptions); adapter(): AxiosAdapter; reset(): void;