Skip to content

Commit d742b23

Browse files
authored
Merge pull request #195 from alburkerk2/master
fix: declare resetHistory method in MockAdapter class
2 parents 0e6f790 + 9064f2e commit d742b23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

types/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ declare class MockAdapter {
4747

4848
adapter(): AxiosAdapter;
4949
reset(): void;
50+
resetHistory(): void;
5051
restore(): void;
51-
52-
history: { [method:string]:AxiosRequestConfig[]; };
52+
53+
history: { [method: string]: AxiosRequestConfig[] };
5354

5455
onGet: RequestMatcherFunc;
5556
onPost: RequestMatcherFunc;

0 commit comments

Comments
 (0)