We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
axios/lib/core/createError
1 parent 3a53a6f commit 7452efdCopy full SHA for 7452efd
packages/exceptions/src/typings/axios/lib/core/createError.d.ts
packages/exceptions/tsconfig.prod.json
@@ -4,5 +4,5 @@
4
"rootDir": "src"
5
},
6
"extends": "../../tsconfig.prod.json",
7
- "include": ["src"]
+ "include": ["src", "typings"]
8
}
packages/exceptions/typings/axios/lib/core/createError.d.ts
@@ -0,0 +1,13 @@
1
+declare module 'axios/lib/core/createError' {
2
+ import type { AxiosError } from '@packages/exceptions/interfaces'
3
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios'
+ import type { ClientRequest } from 'http'
+
+ export default function <Payload = any, Data = any>(
+ message: string,
+ config: AxiosRequestConfig<Data>,
9
+ code?: string,
10
+ request?: ClientRequest,
11
+ response?: AxiosResponse<Payload, Data>
12
+ ): AxiosError<Payload, Data>
13
+}
0 commit comments