mixlea-utils-js 0.1.17 → 0.1.19
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/dist/mixlea-utils-js.js +143 -142
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +8 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -708,7 +708,7 @@ export declare function isMoreThanZero(val: any): boolean;
|
|
|
708
708
|
* 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
|
|
709
709
|
* @param input
|
|
710
710
|
*/
|
|
711
|
-
export declare function isNotEmpty
|
|
711
|
+
export declare function isNotEmpty(input: any): input is NotVoidLike;
|
|
712
712
|
|
|
713
713
|
export declare function isNotEmptyArray(arr: any): arr is Array<any>;
|
|
714
714
|
|
|
@@ -722,7 +722,7 @@ export declare function isNotPlainObject(val: any): boolean;
|
|
|
722
722
|
|
|
723
723
|
export declare function isNotUndefined(value: any): boolean;
|
|
724
724
|
|
|
725
|
-
export declare function isNotVoid(input: any): input is
|
|
725
|
+
export declare function isNotVoid(input: any): input is NotVoidLike_2;
|
|
726
726
|
|
|
727
727
|
export declare function isNullish<T>(value: T | null | undefined): value is null | undefined;
|
|
728
728
|
|
|
@@ -902,6 +902,10 @@ export declare function multiplyBy(val: Record<string, any>, fields: string[], o
|
|
|
902
902
|
|
|
903
903
|
declare type NextFunction<T> = (state: T) => T;
|
|
904
904
|
|
|
905
|
+
declare type NotVoidLike = object | Map<any, any> | Set<any> | string | number | boolean;
|
|
906
|
+
|
|
907
|
+
declare type NotVoidLike_2 = object | Map<any, any> | Set<any> | string | number | boolean;
|
|
908
|
+
|
|
905
909
|
declare type Nullable<T> = T | null | undefined;
|
|
906
910
|
|
|
907
911
|
declare type Nullable_2<T> = T | null | undefined;
|
|
@@ -924,6 +928,7 @@ export declare function numberFormateThousandth(value: any): string;
|
|
|
924
928
|
* @param allowRound 四舍五入, 默认 true
|
|
925
929
|
* @param precision 小数位, 默认 2
|
|
926
930
|
* @param precisionPad 小数位填充, 默认 true
|
|
931
|
+
* @param multiply 小数位填充, 默认 1
|
|
927
932
|
*/
|
|
928
933
|
export declare function numberFormatter<T = unknown>(value: T, options?: {
|
|
929
934
|
allowDecimal?: boolean;
|
|
@@ -932,6 +937,7 @@ export declare function numberFormatter<T = unknown>(value: T, options?: {
|
|
|
932
937
|
allowRound?: boolean;
|
|
933
938
|
precision?: number;
|
|
934
939
|
precisionPad?: boolean;
|
|
940
|
+
multiply?: number;
|
|
935
941
|
}): string;
|
|
936
942
|
|
|
937
943
|
/**
|
|
@@ -1389,10 +1395,6 @@ declare type VoidLike = null | undefined | '' | [];
|
|
|
1389
1395
|
|
|
1390
1396
|
declare type VoidLike_2 = null | undefined | '' | [] | Record<string, never>;
|
|
1391
1397
|
|
|
1392
|
-
declare type VoidLike_3 = null | undefined | '' | [] | Record<string, never>;
|
|
1393
|
-
|
|
1394
|
-
declare type VoidLike_4 = null | undefined | '' | [];
|
|
1395
|
-
|
|
1396
1398
|
export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): {
|
|
1397
1399
|
elseWhen(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): any;
|
|
1398
1400
|
default(defaultResult: ValueOrFn_2<V>): V;
|