jplan-pack 0.5.36 → 0.5.37
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/jplan-pack.cjs.js +22 -22
- package/dist/jplan-pack.es.js +3174 -3177
- package/dist/types/api/coreClient.d.ts +2 -11
- package/dist/types/api/type.d.ts +9 -1
- package/package.json +1 -1
@@ -1,12 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
declare const coreClient: () => AxiosInstance;
|
4
|
-
export declare const client: {
|
5
|
-
request<T>({ url, method, header, body, baseURL, }: HTTP_RequestConfig<T> & {
|
6
|
-
baseURL?: string;
|
7
|
-
}): Promise<T>;
|
8
|
-
rawRequest({ url, method, header, body, baseURL, }: HTTP_RequestConfig<any> & {
|
9
|
-
baseURL?: string;
|
10
|
-
}): Promise<any>;
|
11
|
-
};
|
1
|
+
import { CoreClient } from './type';
|
2
|
+
declare const coreClient: CoreClient;
|
12
3
|
export default coreClient;
|
package/dist/types/api/type.d.ts
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
import { Method } from 'axios';
|
1
|
+
import { AxiosInstance, Method } from 'axios';
|
2
2
|
export type HTTP_RequestConfig<T> = {
|
3
3
|
url: string;
|
4
4
|
method: Method;
|
5
5
|
header?: Record<string, string>;
|
6
6
|
body?: T | T[];
|
7
7
|
};
|
8
|
+
export interface CoreClient extends AxiosInstance {
|
9
|
+
_request<T>(config: HTTP_RequestConfig<T> & {
|
10
|
+
baseURL?: string;
|
11
|
+
}): Promise<T>;
|
12
|
+
rawRequest(config: HTTP_RequestConfig<any> & {
|
13
|
+
baseURL?: string;
|
14
|
+
}): Promise<any>;
|
15
|
+
}
|