Skip to content

Commit

Permalink
Revert AxiosStatic type to AxiosInstance as the module supports also …
Browse files Browse the repository at this point in the history
…child instances

This reverts commit 3ccceaf.
  • Loading branch information
marcbachmann committed Mar 27, 2023
1 parent f2a65f6 commit 7b8c967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AxiosAdapter, AxiosStatic, AxiosRequestConfig } from 'axios';
import { AxiosAdapter, AxiosInstance, AxiosRequestConfig } from 'axios';

type CallbackResponseSpecFunc = (
config: AxiosRequestConfig
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7b8c967

Please sign in to comment.