ly-utils-lib 1.0.12 → 2.4.0
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/LICENSE +21 -0
- package/README.md +889 -686
- package/dist/array.cjs +237 -0
- package/dist/array.cjs.map +1 -0
- package/dist/array.d.cts +2 -0
- package/dist/array.d.ts +2 -0
- package/dist/array.js +150 -0
- package/dist/array.js.map +1 -0
- package/dist/crypto.cjs +193 -0
- package/dist/crypto.cjs.map +1 -0
- package/dist/crypto.d.cts +3 -0
- package/dist/crypto.d.ts +3 -0
- package/dist/crypto.js +144 -0
- package/dist/crypto.js.map +1 -0
- package/dist/date.cjs +563 -0
- package/dist/date.cjs.map +1 -0
- package/dist/date.d.cts +2 -0
- package/dist/date.d.ts +2 -0
- package/dist/date.js +451 -0
- package/dist/date.js.map +1 -0
- package/dist/excel.cjs +227 -0
- package/dist/excel.cjs.map +1 -0
- package/dist/excel.d.cts +2 -0
- package/dist/excel.d.ts +2 -0
- package/dist/excel.js +196 -0
- package/dist/excel.js.map +1 -0
- package/dist/index-B80SEVzM.d.cts +382 -0
- package/dist/index-B80SEVzM.d.ts +382 -0
- package/dist/index-Ba1rjTzj.d.cts +299 -0
- package/dist/index-Ba1rjTzj.d.ts +299 -0
- package/dist/index-Bg1ise7y.d.cts +253 -0
- package/dist/index-Bg1ise7y.d.ts +253 -0
- package/dist/index-BoqNpwNa.d.cts +203 -0
- package/dist/index-BoqNpwNa.d.ts +203 -0
- package/dist/index-C0qUnb9Y.d.cts +533 -0
- package/dist/index-C0qUnb9Y.d.ts +533 -0
- package/dist/index-Cy-mb5v_.d.cts +262 -0
- package/dist/index-Cy-mb5v_.d.ts +262 -0
- package/dist/index-D1f9Sym2.d.cts +148 -0
- package/dist/index-D1f9Sym2.d.ts +148 -0
- package/dist/index-Dan5oF-5.d.cts +213 -0
- package/dist/index-Dan5oF-5.d.ts +213 -0
- package/dist/index-XABfrs7z.d.cts +596 -0
- package/dist/index-XABfrs7z.d.ts +596 -0
- package/dist/index-YXWfKCK7.d.cts +109 -0
- package/dist/index-YXWfKCK7.d.ts +109 -0
- package/dist/index.cjs +3355 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +3294 -0
- package/dist/index.js.map +1 -0
- package/dist/map.cjs +839 -0
- package/dist/map.cjs.map +1 -0
- package/dist/map.d.cts +6 -0
- package/dist/map.d.ts +6 -0
- package/dist/map.js +811 -0
- package/dist/map.js.map +1 -0
- package/dist/object.cjs +316 -0
- package/dist/object.cjs.map +1 -0
- package/dist/object.d.cts +2 -0
- package/dist/object.d.ts +2 -0
- package/dist/object.js +247 -0
- package/dist/object.js.map +1 -0
- package/dist/pdf.cjs +197 -0
- package/dist/pdf.cjs.map +1 -0
- package/dist/pdf.d.cts +3 -0
- package/dist/pdf.d.ts +3 -0
- package/dist/pdf.js +173 -0
- package/dist/pdf.js.map +1 -0
- package/dist/storage.cjs +255 -0
- package/dist/storage.cjs.map +1 -0
- package/dist/storage.d.cts +1 -0
- package/dist/storage.d.ts +1 -0
- package/dist/storage.js +226 -0
- package/dist/storage.js.map +1 -0
- package/dist/string.cjs +232 -0
- package/dist/string.cjs.map +1 -0
- package/dist/string.d.cts +2 -0
- package/dist/string.d.ts +2 -0
- package/dist/string.js +170 -0
- package/dist/string.js.map +1 -0
- package/dist/utils.cjs +429 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +371 -0
- package/dist/utils.js.map +1 -0
- package/package.json +159 -33
- package/dist/ly-utils-lib.cjs.js +0 -115
- package/dist/ly-utils-lib.cjs.js.map +0 -1
- package/dist/ly-utils-lib.es.js +0 -58589
- package/dist/ly-utils-lib.es.js.map +0 -1
- package/dist/ly-utils-lib.umd.js +0 -115
- package/dist/ly-utils-lib.umd.js.map +0 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/utils/esToolkit.d.ts +0 -2
- package/dist/types/utils/ol.d.ts +0 -175
- package/dist/types/utils/router.d.ts +0 -10
- package/dist/types/utils/storage.d.ts +0 -42
- package/dist/types/utils/time.d.ts +0 -66
- package/dist/types/utils/tool.d.ts +0 -80
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { DebouncedFunction, ThrottledFunction, debounce, throttle } from 'es-toolkit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 通用工具模块
|
|
5
|
+
* 提供颜色转换、图片处理、文件下载、类型判断、数组/对象操作等通用功能
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 深度克隆对象
|
|
10
|
+
* @param obj 要克隆的对象
|
|
11
|
+
* @returns 克隆后的对象
|
|
12
|
+
*/
|
|
13
|
+
declare const clone: <T>(obj: T) => T;
|
|
14
|
+
/**
|
|
15
|
+
* 深度比较两个对象是否相等
|
|
16
|
+
* @param a 对象 a
|
|
17
|
+
* @param b 对象 b
|
|
18
|
+
* @returns 是否相等
|
|
19
|
+
*/
|
|
20
|
+
declare const isEqual: (a: any, b: any) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 深度合并对象
|
|
23
|
+
* @param objects 要合并的对象
|
|
24
|
+
* @returns 合并后的对象
|
|
25
|
+
*/
|
|
26
|
+
declare const deepMerge: <T extends Record<string, any>>(...objects: Partial<T>[]) => T;
|
|
27
|
+
/**
|
|
28
|
+
* 获取对象的路径值
|
|
29
|
+
* @param obj 对象
|
|
30
|
+
* @param path 路径(例如:'user.name')
|
|
31
|
+
* @returns 路径对应的值
|
|
32
|
+
*/
|
|
33
|
+
declare const get: (obj: any, path: string) => any;
|
|
34
|
+
/**
|
|
35
|
+
* 设置对象的路径值
|
|
36
|
+
* @param obj 对象
|
|
37
|
+
* @param path 路径(例如:'user.name')
|
|
38
|
+
* @param value 要设置的值
|
|
39
|
+
*/
|
|
40
|
+
declare const set: (obj: any, path: string, value: any) => void;
|
|
41
|
+
/**
|
|
42
|
+
* 省略对象中的某些属性
|
|
43
|
+
* @param obj 对象
|
|
44
|
+
* @param keys 要省略的键
|
|
45
|
+
* @returns 省略后的对象
|
|
46
|
+
*/
|
|
47
|
+
declare const omit: <T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]) => Omit<T, K>;
|
|
48
|
+
/**
|
|
49
|
+
* 选择对象中的某些属性
|
|
50
|
+
* @param obj 对象
|
|
51
|
+
* @param keys 要选择的键
|
|
52
|
+
* @returns 选择后的对象
|
|
53
|
+
*/
|
|
54
|
+
declare const pick: <T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]) => Pick<T, K>;
|
|
55
|
+
/**
|
|
56
|
+
* 判断是否为对象
|
|
57
|
+
* @param value 要判断的值
|
|
58
|
+
* @returns 是否为对象
|
|
59
|
+
*/
|
|
60
|
+
declare const isObject: (value: any) => value is Record<string, any>;
|
|
61
|
+
/**
|
|
62
|
+
* 判断是否为数组
|
|
63
|
+
* @param value 要判断的值
|
|
64
|
+
* @returns 是否为数组
|
|
65
|
+
*/
|
|
66
|
+
declare const isArray: (value: any) => value is any[];
|
|
67
|
+
/**
|
|
68
|
+
* 判断是否为字符串
|
|
69
|
+
* @param value 要判断的值
|
|
70
|
+
* @returns 是否为字符串
|
|
71
|
+
*/
|
|
72
|
+
declare const isString: (value: any) => value is string;
|
|
73
|
+
/**
|
|
74
|
+
* 判断是否为数字
|
|
75
|
+
* @param value 要判断的值
|
|
76
|
+
* @returns 是否为数字
|
|
77
|
+
*/
|
|
78
|
+
declare const isNumber: (value: any) => value is number;
|
|
79
|
+
/**
|
|
80
|
+
* 判断是否为布尔值
|
|
81
|
+
* @param value 要判断的值
|
|
82
|
+
* @returns 是否为布尔值
|
|
83
|
+
*/
|
|
84
|
+
declare const isBoolean: (value: any) => value is boolean;
|
|
85
|
+
/**
|
|
86
|
+
* 判断是否为函数
|
|
87
|
+
* @param value 要判断的值
|
|
88
|
+
* @returns 是否为函数
|
|
89
|
+
*/
|
|
90
|
+
declare const isFunction: (value: any) => value is Function;
|
|
91
|
+
/**
|
|
92
|
+
* 判断是否为空值
|
|
93
|
+
* @param value 要判断的值
|
|
94
|
+
* @returns 是否为空
|
|
95
|
+
*/
|
|
96
|
+
declare const isEmpty: (value: any) => boolean;
|
|
97
|
+
/**
|
|
98
|
+
* 数组去重
|
|
99
|
+
* @param array 数组
|
|
100
|
+
* @returns 去重后的数组
|
|
101
|
+
*/
|
|
102
|
+
declare const uniq: <T>(array: T[]) => T[];
|
|
103
|
+
/**
|
|
104
|
+
* 数组排序
|
|
105
|
+
* @param array 数组
|
|
106
|
+
* @param key 排序键
|
|
107
|
+
* @returns 排序后的数组
|
|
108
|
+
*/
|
|
109
|
+
declare const sortBy: <T>(array: T[], key: keyof T | ((item: T) => any)) => T[];
|
|
110
|
+
/**
|
|
111
|
+
* 数组分块
|
|
112
|
+
* @param array 数组
|
|
113
|
+
* @param size 分块大小
|
|
114
|
+
* @returns 分块后的二维数组
|
|
115
|
+
*/
|
|
116
|
+
declare const chunk: <T>(array: T[], size: number) => T[][];
|
|
117
|
+
/**
|
|
118
|
+
* 数组分组
|
|
119
|
+
* @param array 数组
|
|
120
|
+
* @param key 分组键
|
|
121
|
+
* @returns 分组后的对象
|
|
122
|
+
*/
|
|
123
|
+
declare const groupBy: <T>(array: T[], key: keyof T | ((item: T) => string)) => Record<string, T[]>;
|
|
124
|
+
/**
|
|
125
|
+
* 数组求和
|
|
126
|
+
* @param array 数组
|
|
127
|
+
* @returns 总和
|
|
128
|
+
*/
|
|
129
|
+
declare const sum: (array: number[]) => number;
|
|
130
|
+
/**
|
|
131
|
+
* 数组平均值
|
|
132
|
+
* @param array 数组
|
|
133
|
+
* @returns 平均值
|
|
134
|
+
*/
|
|
135
|
+
declare const avg: (array: number[]) => number;
|
|
136
|
+
/**
|
|
137
|
+
* 数组最大值
|
|
138
|
+
* @param array 数组
|
|
139
|
+
* @returns 最大值
|
|
140
|
+
*/
|
|
141
|
+
declare const max: (array: number[]) => number;
|
|
142
|
+
/**
|
|
143
|
+
* 数组最小值
|
|
144
|
+
* @param array 数组
|
|
145
|
+
* @returns 最小值
|
|
146
|
+
*/
|
|
147
|
+
declare const min: (array: number[]) => number;
|
|
148
|
+
/**
|
|
149
|
+
* 驼峰转下划线
|
|
150
|
+
* @param str 字符串
|
|
151
|
+
* @returns 转换后的字符串
|
|
152
|
+
*/
|
|
153
|
+
declare const camelToSnake: (str: string) => string;
|
|
154
|
+
/**
|
|
155
|
+
* 下划线转驼峰
|
|
156
|
+
* @param str 字符串
|
|
157
|
+
* @returns 转换后的字符串
|
|
158
|
+
*/
|
|
159
|
+
declare const snakeToCamel: (str: string) => string;
|
|
160
|
+
/**
|
|
161
|
+
* 首字母大写
|
|
162
|
+
* @param str 字符串
|
|
163
|
+
* @returns 转换后的字符串
|
|
164
|
+
*/
|
|
165
|
+
declare const capitalize: (str: string) => string;
|
|
166
|
+
/**
|
|
167
|
+
* 截断字符串
|
|
168
|
+
* @param str 字符串
|
|
169
|
+
* @param length 最大长度
|
|
170
|
+
* @param suffix 后缀
|
|
171
|
+
* @returns 截断后的字符串
|
|
172
|
+
*/
|
|
173
|
+
declare const truncate: (str: string, length?: number, suffix?: string) => string;
|
|
174
|
+
/**
|
|
175
|
+
* 格式化文件大小
|
|
176
|
+
* @param bytes 字节数
|
|
177
|
+
* @returns 格式化后的字符串
|
|
178
|
+
*/
|
|
179
|
+
declare const formatFileSize: (bytes: number) => string;
|
|
180
|
+
/**
|
|
181
|
+
* 格式化数字(千分位)
|
|
182
|
+
* @param num 数字
|
|
183
|
+
* @returns 格式化后的字符串
|
|
184
|
+
*/
|
|
185
|
+
declare const formatNumber: (num: number) => string;
|
|
186
|
+
/**
|
|
187
|
+
* 检查是否为有效的 URL
|
|
188
|
+
* @param str 字符串
|
|
189
|
+
* @returns 是否为有效 URL
|
|
190
|
+
*/
|
|
191
|
+
declare const isValidUrl: (str: string) => boolean;
|
|
192
|
+
/**
|
|
193
|
+
* 检查是否为有效的邮箱
|
|
194
|
+
* @param email 邮箱地址
|
|
195
|
+
* @returns 是否为有效邮箱
|
|
196
|
+
*/
|
|
197
|
+
declare const isValidEmail: (email: string) => boolean;
|
|
198
|
+
/**
|
|
199
|
+
* 检查是否为有效的手机号(中国)
|
|
200
|
+
* @param phone 手机号
|
|
201
|
+
* @returns 是否为有效手机号
|
|
202
|
+
*/
|
|
203
|
+
declare const isValidPhone: (phone: string) => boolean;
|
|
204
|
+
/**
|
|
205
|
+
* 生成范围内的随机整数
|
|
206
|
+
* @param min 最小值
|
|
207
|
+
* @param max 最大值
|
|
208
|
+
* @returns 随机整数
|
|
209
|
+
*/
|
|
210
|
+
declare const randomInt: (min: number, max: number) => number;
|
|
211
|
+
/**
|
|
212
|
+
* 生成唯一 ID
|
|
213
|
+
* @param prefix 前缀
|
|
214
|
+
* @returns 唯一 ID
|
|
215
|
+
*/
|
|
216
|
+
declare const uniqueId: (prefix?: string) => string;
|
|
217
|
+
/**
|
|
218
|
+
* 延迟执行
|
|
219
|
+
* @param ms 延迟时间(毫秒)
|
|
220
|
+
* @returns Promise
|
|
221
|
+
*/
|
|
222
|
+
declare const delay: (ms: number) => Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* 重试函数
|
|
225
|
+
* @param fn 要执行的函数
|
|
226
|
+
* @param retries 重试次数
|
|
227
|
+
* @param delayMs 重试延迟
|
|
228
|
+
* @returns Promise
|
|
229
|
+
*/
|
|
230
|
+
declare const retry: <T>(fn: () => Promise<T>, retries?: number, delayMs?: number) => Promise<T>;
|
|
231
|
+
/**
|
|
232
|
+
* Hex 颜色转 RGB 颜色
|
|
233
|
+
* @param str Hex 颜色(如 #FFFFFF 或 FFFFFF)
|
|
234
|
+
* @returns RGB 颜色数组 [r, g, b]
|
|
235
|
+
*/
|
|
236
|
+
declare const hexToRgb: (str: string) => number[] | null;
|
|
237
|
+
/**
|
|
238
|
+
* Hex 颜色转 RGB 字符串
|
|
239
|
+
* @param str Hex 颜色(如 #FFFFFF 或 FFFFFF)
|
|
240
|
+
* @returns RGB 字符串(如 rgb(255, 255, 255))
|
|
241
|
+
*/
|
|
242
|
+
declare const hexToRgbString: (str: string) => string | null;
|
|
243
|
+
/**
|
|
244
|
+
* RGB 颜色转 Hex 颜色
|
|
245
|
+
* @param r 红色值 (0-255)
|
|
246
|
+
* @param g 绿色值 (0-255)
|
|
247
|
+
* @param b 蓝色值 (0-255)
|
|
248
|
+
* @returns Hex 颜色字符串(如 #FFFFFF)
|
|
249
|
+
*/
|
|
250
|
+
declare const rgbToHex: (r: number, g: number, b: number) => string | null;
|
|
251
|
+
/**
|
|
252
|
+
* RGB 颜色转 Hex 颜色(数组版本)
|
|
253
|
+
* @param rgb RGB 数组 [r, g, b]
|
|
254
|
+
* @returns Hex 颜色字符串(如 #FFFFFF)
|
|
255
|
+
*/
|
|
256
|
+
declare const rgbArrayToHex: (rgb: number[]) => string | null;
|
|
257
|
+
/**
|
|
258
|
+
* 变浅颜色值
|
|
259
|
+
* @param color Hex 颜色(如 #FFFFFF 或 FFFFFF)
|
|
260
|
+
* @param alpha 透明度因子 (0-1),值越大颜色越浅
|
|
261
|
+
* @returns 变浅后的 Hex 颜色
|
|
262
|
+
*/
|
|
263
|
+
declare const getLightColor: (color: string, alpha: number) => string | null;
|
|
264
|
+
/**
|
|
265
|
+
* 变深颜色值
|
|
266
|
+
* @param color Hex 颜色(如 #FFFFFF 或 FFFFFF)
|
|
267
|
+
* @param alpha 暗化因子 (0-1),值越大颜色越深
|
|
268
|
+
* @returns 变深后的 Hex 颜色
|
|
269
|
+
*/
|
|
270
|
+
declare const getDarkColor: (color: string, alpha: number) => string | null;
|
|
271
|
+
/**
|
|
272
|
+
* 图片转 Base64
|
|
273
|
+
* @param url 图片 URL
|
|
274
|
+
* @param type 图片类型(默认 image/png)
|
|
275
|
+
* @returns Base64 字符串
|
|
276
|
+
*/
|
|
277
|
+
declare const imgToBase64: (url: string, type?: "image/jpeg" | "image/png") => Promise<string>;
|
|
278
|
+
/**
|
|
279
|
+
* Base64 转 File 对象
|
|
280
|
+
* @param base64 Base64 字符串
|
|
281
|
+
* @param fileName 文件名
|
|
282
|
+
* @param mimeType MIME 类型(默认 image/jpeg)
|
|
283
|
+
* @returns File 对象
|
|
284
|
+
*/
|
|
285
|
+
declare const base64toFile: (base64: string, fileName: string, mimeType?: string) => File;
|
|
286
|
+
/**
|
|
287
|
+
* Base64 转 Blob 对象
|
|
288
|
+
* @param base64 Base64 字符串
|
|
289
|
+
* @param mimeType MIME 类型
|
|
290
|
+
* @returns Blob 对象
|
|
291
|
+
*/
|
|
292
|
+
declare const base64toBlob: (base64: string, mimeType?: string) => Blob;
|
|
293
|
+
/**
|
|
294
|
+
* 下载文件
|
|
295
|
+
* @param url 文件 URL 或 Data URL
|
|
296
|
+
* @param fileName 文件名
|
|
297
|
+
* @param target 是否在新标签页打开(默认 false)
|
|
298
|
+
*/
|
|
299
|
+
declare const downloadFile: (url: string, fileName?: string, target?: boolean) => void;
|
|
300
|
+
/**
|
|
301
|
+
* 下载 Blob 文件
|
|
302
|
+
* @param blob Blob 对象
|
|
303
|
+
* @param fileName 文件名
|
|
304
|
+
*/
|
|
305
|
+
declare const downloadBlob: (blob: Blob, fileName: string) => void;
|
|
306
|
+
/**
|
|
307
|
+
* 下载 Base64 文件
|
|
308
|
+
* @param base64 Base64 字符串
|
|
309
|
+
* @param fileName 文件名
|
|
310
|
+
* @param mimeType MIME 类型
|
|
311
|
+
*/
|
|
312
|
+
declare const downloadBase64: (base64: string, fileName: string, mimeType?: string) => void;
|
|
313
|
+
/**
|
|
314
|
+
* 复制文本到剪贴板
|
|
315
|
+
* @param text 要复制的文本
|
|
316
|
+
* @returns 是否成功
|
|
317
|
+
*/
|
|
318
|
+
declare const copyToClipboard: (text: string) => Promise<boolean>;
|
|
319
|
+
/**
|
|
320
|
+
* 从剪贴板读取文本
|
|
321
|
+
* @returns 剪贴板文本
|
|
322
|
+
*/
|
|
323
|
+
declare const readFromClipboard: () => Promise<string>;
|
|
324
|
+
|
|
325
|
+
declare const index_DebouncedFunction: typeof DebouncedFunction;
|
|
326
|
+
declare const index_ThrottledFunction: typeof ThrottledFunction;
|
|
327
|
+
declare const index_avg: typeof avg;
|
|
328
|
+
declare const index_base64toBlob: typeof base64toBlob;
|
|
329
|
+
declare const index_base64toFile: typeof base64toFile;
|
|
330
|
+
declare const index_camelToSnake: typeof camelToSnake;
|
|
331
|
+
declare const index_capitalize: typeof capitalize;
|
|
332
|
+
declare const index_chunk: typeof chunk;
|
|
333
|
+
declare const index_clone: typeof clone;
|
|
334
|
+
declare const index_copyToClipboard: typeof copyToClipboard;
|
|
335
|
+
declare const index_debounce: typeof debounce;
|
|
336
|
+
declare const index_deepMerge: typeof deepMerge;
|
|
337
|
+
declare const index_delay: typeof delay;
|
|
338
|
+
declare const index_downloadBase64: typeof downloadBase64;
|
|
339
|
+
declare const index_downloadBlob: typeof downloadBlob;
|
|
340
|
+
declare const index_downloadFile: typeof downloadFile;
|
|
341
|
+
declare const index_formatFileSize: typeof formatFileSize;
|
|
342
|
+
declare const index_formatNumber: typeof formatNumber;
|
|
343
|
+
declare const index_get: typeof get;
|
|
344
|
+
declare const index_getDarkColor: typeof getDarkColor;
|
|
345
|
+
declare const index_getLightColor: typeof getLightColor;
|
|
346
|
+
declare const index_groupBy: typeof groupBy;
|
|
347
|
+
declare const index_hexToRgb: typeof hexToRgb;
|
|
348
|
+
declare const index_hexToRgbString: typeof hexToRgbString;
|
|
349
|
+
declare const index_imgToBase64: typeof imgToBase64;
|
|
350
|
+
declare const index_isArray: typeof isArray;
|
|
351
|
+
declare const index_isBoolean: typeof isBoolean;
|
|
352
|
+
declare const index_isEmpty: typeof isEmpty;
|
|
353
|
+
declare const index_isEqual: typeof isEqual;
|
|
354
|
+
declare const index_isFunction: typeof isFunction;
|
|
355
|
+
declare const index_isNumber: typeof isNumber;
|
|
356
|
+
declare const index_isObject: typeof isObject;
|
|
357
|
+
declare const index_isString: typeof isString;
|
|
358
|
+
declare const index_isValidEmail: typeof isValidEmail;
|
|
359
|
+
declare const index_isValidPhone: typeof isValidPhone;
|
|
360
|
+
declare const index_isValidUrl: typeof isValidUrl;
|
|
361
|
+
declare const index_max: typeof max;
|
|
362
|
+
declare const index_min: typeof min;
|
|
363
|
+
declare const index_omit: typeof omit;
|
|
364
|
+
declare const index_pick: typeof pick;
|
|
365
|
+
declare const index_randomInt: typeof randomInt;
|
|
366
|
+
declare const index_readFromClipboard: typeof readFromClipboard;
|
|
367
|
+
declare const index_retry: typeof retry;
|
|
368
|
+
declare const index_rgbArrayToHex: typeof rgbArrayToHex;
|
|
369
|
+
declare const index_rgbToHex: typeof rgbToHex;
|
|
370
|
+
declare const index_set: typeof set;
|
|
371
|
+
declare const index_snakeToCamel: typeof snakeToCamel;
|
|
372
|
+
declare const index_sortBy: typeof sortBy;
|
|
373
|
+
declare const index_sum: typeof sum;
|
|
374
|
+
declare const index_throttle: typeof throttle;
|
|
375
|
+
declare const index_truncate: typeof truncate;
|
|
376
|
+
declare const index_uniq: typeof uniq;
|
|
377
|
+
declare const index_uniqueId: typeof uniqueId;
|
|
378
|
+
declare namespace index {
|
|
379
|
+
export { index_DebouncedFunction as DebouncedFunction, index_ThrottledFunction as ThrottledFunction, index_avg as avg, index_base64toBlob as base64toBlob, index_base64toFile as base64toFile, index_camelToSnake as camelToSnake, index_capitalize as capitalize, index_chunk as chunk, index_clone as clone, index_copyToClipboard as copyToClipboard, index_debounce as debounce, index_deepMerge as deepMerge, index_delay as delay, index_downloadBase64 as downloadBase64, index_downloadBlob as downloadBlob, index_downloadFile as downloadFile, index_formatFileSize as formatFileSize, index_formatNumber as formatNumber, index_get as get, index_getDarkColor as getDarkColor, index_getLightColor as getLightColor, index_groupBy as groupBy, index_hexToRgb as hexToRgb, index_hexToRgbString as hexToRgbString, index_imgToBase64 as imgToBase64, index_isArray as isArray, index_isBoolean as isBoolean, index_isEmpty as isEmpty, index_isEqual as isEqual, index_isFunction as isFunction, index_isNumber as isNumber, index_isObject as isObject, index_isString as isString, index_isValidEmail as isValidEmail, index_isValidPhone as isValidPhone, index_isValidUrl as isValidUrl, index_max as max, index_min as min, index_omit as omit, index_pick as pick, index_randomInt as randomInt, index_readFromClipboard as readFromClipboard, index_retry as retry, index_rgbArrayToHex as rgbArrayToHex, index_rgbToHex as rgbToHex, index_set as set, index_snakeToCamel as snakeToCamel, index_sortBy as sortBy, index_sum as sum, index_throttle as throttle, index_truncate as truncate, index_uniq as uniq, index_uniqueId as uniqueId };
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export { isEqual as A, isFunction as B, isNumber as C, isObject as D, isString as E, isValidEmail as F, isValidPhone as G, isValidUrl as H, max as I, min as J, omit as K, pick as L, randomInt as M, readFromClipboard as N, retry as O, rgbArrayToHex as P, rgbToHex as Q, set as R, snakeToCamel as S, sortBy as T, sum as U, truncate as V, uniq as W, uniqueId as X, avg as a, base64toBlob as b, base64toFile as c, camelToSnake as d, capitalize as e, chunk as f, clone as g, copyToClipboard as h, index as i, deepMerge as j, delay as k, downloadBase64 as l, downloadBlob as m, downloadFile as n, formatFileSize as o, formatNumber as p, get as q, getDarkColor as r, getLightColor as s, groupBy as t, hexToRgb as u, hexToRgbString as v, imgToBase64 as w, isArray as x, isBoolean as y, isEmpty as z };
|