lyb-js 1.1.8 → 1.1.10
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.
|
@@ -5,6 +5,4 @@
|
|
|
5
5
|
* @returns [数字, 单位, 数字+单位]
|
|
6
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-js#LibJsNumberUnit-数字单位
|
|
7
7
|
*/
|
|
8
|
-
export declare const libJsNumberUnit: (num: number, units:
|
|
9
|
-
string: number;
|
|
10
|
-
}, point?: number) => string[];
|
|
8
|
+
export declare const libJsNumberUnit: (num: number, units: Record<string, number>, point?: number) => string[];
|
package/dist/libJs.d.ts
CHANGED
|
@@ -153,9 +153,7 @@ export declare const Formatter: {
|
|
|
153
153
|
* @returns [数字, 单位]
|
|
154
154
|
* @link 使用方法:https://www.npmjs.com/package/lyb-js#LibJsNumberUnit-数字单位
|
|
155
155
|
*/
|
|
156
|
-
libJsNumberUnit: (num: number, units:
|
|
157
|
-
string: number;
|
|
158
|
-
}, point?: number) => string[];
|
|
156
|
+
libJsNumberUnit: (num: number, units: Record<string, number>, point?: number) => string[];
|
|
159
157
|
/**
|
|
160
158
|
* @description 将秒数格式化为中文时间描述,支持扩展到年和月
|
|
161
159
|
* @param seconds 秒数
|