dt-shared-front 2.2.112 → 2.2.113
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +39 -39
- package/dist/service/service.d.ts +2 -1
- package/package.json +1 -1
@@ -2,6 +2,7 @@ import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { IResult } from './service.types';
|
3
3
|
interface IServiceRequestConfig {
|
4
4
|
requestInterceptor?: (req: AxiosRequestConfig<any>) => AxiosRequestConfig<any>;
|
5
|
+
decorators?: ((axios: AxiosInstance) => AxiosInstance)[];
|
5
6
|
}
|
6
7
|
export interface IBaseServiceStreamOptions {
|
7
8
|
complete?: () => void;
|
@@ -12,7 +13,7 @@ export interface IBaseServiceStreamOptions {
|
|
12
13
|
export default class BaseService {
|
13
14
|
protected axios: AxiosInstance;
|
14
15
|
private _params;
|
15
|
-
constructor({ ...params }: IServiceRequestConfig & AxiosRequestConfig);
|
16
|
+
constructor({ decorators, ...params }: IServiceRequestConfig & AxiosRequestConfig);
|
16
17
|
createCancelToken: () => import("axios").CancelTokenSource;
|
17
18
|
private _request;
|
18
19
|
private _requestRPC;
|