Skip to content

Commit 864207d

Browse files
committed
chore(ts): fix types
1 parent a3e8b58 commit 864207d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@decathlon/moon-testing",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Moon testing utilities.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class AxiosClient {
3636
}
3737

3838
export function mockAxiosClientConstructor(ClientFactory = AxiosClient): void {
39-
Axios.create = ({ baseUrl }) => {
39+
Axios.create = ({ baseUrl }: { baseUrl: string }) => {
4040
return new ClientFactory(baseUrl);
4141
};
4242
}
@@ -45,6 +45,7 @@ mockAxiosClientConstructor(AxiosClient);
4545

4646
export const cancelToken = { cancel: () => jest.fn() };
4747

48+
//@ts-ignore
4849
StaticAxios.CancelToken.source = () => cancelToken;
4950

5051
export { default as MoonClient } from "./moon-client";

0 commit comments

Comments
 (0)