@midwayjs/axios 3.20.1-beta.1 → 3.20.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http-service.d.ts +1 -1
- package/dist/interface.d.ts +8 -5
- package/package.json +1 -1
package/dist/http-service.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Axios } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { AxiosRequestConfig, AxiosResponse } from './interface';
|
|
3
3
|
export declare class HttpService implements Axios {
|
|
4
4
|
private instance;
|
|
5
5
|
private serviceFactory;
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AxiosRequestConfig as OriginAxiosRequestConfig, AxiosRequestHeaders, AxiosResponse as OriginAxiosResponse } from 'axios';
|
|
2
|
+
export interface AxiosRequestConfig<D = any> extends OriginAxiosRequestConfig<D> {
|
|
3
|
+
}
|
|
4
|
+
export interface AxiosResponse<T = any, D = any> extends OriginAxiosResponse<T, D> {
|
|
5
|
+
config: AxiosRequestConfig<D> & {
|
|
6
|
+
headers: AxiosRequestHeaders;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
6
9
|
//# sourceMappingURL=interface.d.ts.map
|