@aiao/utils 0.0.1 → 0.0.3
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.
|
@@ -3,24 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const BASE_62_DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
9
|
-
* @
|
|
6
|
+
* 在两个排序键之间生成一个新的排序键
|
|
7
|
+
* @param a 起始键(null表示开始)
|
|
8
|
+
* @param b 结束键(null表示结尾)
|
|
9
|
+
* @param digits 数字字符集,默认为BASE_62
|
|
10
|
+
* @returns 新生成的排序键
|
|
10
11
|
*/
|
|
11
12
|
export declare function generateKeyBetween(a: string | null | undefined, b: string | null | undefined, digits?: string): string;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* a and b.
|
|
20
|
-
* @param a
|
|
21
|
-
* @param b
|
|
22
|
-
* @param n
|
|
23
|
-
* @param digits
|
|
24
|
-
* @return {string[]}
|
|
14
|
+
* 在两个排序键之间生成n个排序键
|
|
15
|
+
* @param a 起始键
|
|
16
|
+
* @param b 结束键
|
|
17
|
+
* @param n 生成键的数量
|
|
18
|
+
* @param digits 数字字符集
|
|
19
|
+
* @returns 生成的排序键数组
|
|
25
20
|
*/
|
|
26
21
|
export declare function generateKeysBetween(a: string | null | undefined, b: string | null | undefined, n: number, digits?: string): string[];
|