mixlea-utils-js 0.1.80 → 0.1.81
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 +847 -829
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +9 -3
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1048,11 +1048,15 @@ export declare function numberToInt(input: any, method?: 'floor' | 'ceil' | 'rou
|
|
|
1048
1048
|
|
|
1049
1049
|
export declare function objectArrayExpressionCalcInject(arr: Record<string, any>[], injects: Record<string, string>): Record<string, any>[];
|
|
1050
1050
|
|
|
1051
|
-
export declare function
|
|
1051
|
+
export declare function objectArrayFieldMax<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
|
|
1052
1052
|
|
|
1053
|
-
export declare function
|
|
1053
|
+
export declare function objectArrayFieldMin<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
|
|
1054
|
+
|
|
1055
|
+
export declare function objectArrayFieldsMax<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
|
|
1054
1056
|
|
|
1055
|
-
export declare function
|
|
1057
|
+
export declare function objectArrayFieldsMin<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
|
|
1058
|
+
|
|
1059
|
+
export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
|
|
1056
1060
|
|
|
1057
1061
|
export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
|
|
1058
1062
|
|
|
@@ -1161,6 +1165,8 @@ export declare function percentFormatter<T = unknown>(value: T, options?: {
|
|
|
1161
1165
|
|
|
1162
1166
|
export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
|
|
1163
1167
|
|
|
1168
|
+
export declare function pickObjectArrayFields<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): T[K][];
|
|
1169
|
+
|
|
1164
1170
|
export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
|
|
1165
1171
|
|
|
1166
1172
|
export declare function pipe<A extends unknown[], B, C>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C): (...args: A) => C;
|