Skip to content

Commit 7b8c967

Browse files
committed
Revert AxiosStatic type to AxiosInstance as the module supports also child instances
This reverts commit 3ccceaf.
1 parent f2a65f6 commit 7b8c967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AxiosAdapter, AxiosStatic, AxiosRequestConfig } from 'axios';
1+
import { AxiosAdapter, AxiosInstance, AxiosRequestConfig } from 'axios';
22

33
type CallbackResponseSpecFunc = (
44
config: AxiosRequestConfig
@@ -55,7 +55,7 @@ type RequestMatcherFunc = (
5555
) => MockAdapter.RequestHandler;
5656

5757
declare class MockAdapter {
58-
constructor(axiosInstance: AxiosStatic, options?: MockAdapterOptions);
58+
constructor(axiosInstance: AxiosInstance, options?: MockAdapterOptions);
5959

6060
adapter(): AxiosAdapter;
6161
reset(): void;

0 commit comments

Comments
 (0)