tools_dj 1.0.87 → 1.0.89
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/lib/index.d.ts +2 -1
- package/lib/request.d.ts +1 -2
- package/lib/types.d.ts +9 -0
- package/lib/types.js +1 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatSizeOptions } from "./types";
|
|
1
2
|
/** 2024-07-08 12:49 User: DJ
|
|
2
3
|
* content: 删除数组重复的元素
|
|
3
4
|
* let newArr = del_repeat(Arr)
|
|
@@ -288,7 +289,7 @@ export declare function objToFormData(obj: any, simplify?: boolean): FormData;
|
|
|
288
289
|
* @param option.perUnit - 转换进制,默认为1024
|
|
289
290
|
* @returns 格式化后的文件大小字符串
|
|
290
291
|
*/
|
|
291
|
-
export declare function formatSize(num: any, option?:
|
|
292
|
+
export declare function formatSize(num: any, option?: formatSizeOptions): string;
|
|
292
293
|
/** 2025/4/23 15:59 User: DJ
|
|
293
294
|
* content: 层级树转换成为多叉树 或者转化成为带有左右属性的树
|
|
294
295
|
* @param items 平级树结构数据
|
package/lib/request.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 请求配置接口
|
|
3
3
|
*/
|
|
4
|
-
interface conf {
|
|
4
|
+
export interface conf {
|
|
5
5
|
/** 请求的基础URL前缀 */
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
/** 请求超时时间,单位毫秒,默认6000ms */
|
|
@@ -50,4 +50,3 @@ export default class {
|
|
|
50
50
|
*/
|
|
51
51
|
serve(url?: string, options?: any, conf?: conf): Promise<any>;
|
|
52
52
|
}
|
|
53
|
-
export {};
|
package/lib/types.d.ts
ADDED
package/lib/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});
|