@aiao/utils 0.0.2 → 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
- * @param a
7
- * @param b
8
- * @param digits
9
- * @return {string}
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
- * same preconditions as generateKeysBetween.
14
- * n >= 0.
15
- * Returns an array of n distinct keys in sorted order.
16
- * If a and b are both null, returns [a0, a1, ...]
17
- * If one or the other is null, returns consecutive "integer"
18
- * keys. Otherwise, returns relatively short keys between
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiao/utils",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "ms": "^2.1.3",