mixlea-utils-js 0.1.79 → 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 +899 -873
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1048,6 +1048,14 @@ 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 objectArrayFieldMax<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
|
|
1052
|
+
|
|
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;
|
|
1056
|
+
|
|
1057
|
+
export declare function objectArrayFieldsMin<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
|
|
1058
|
+
|
|
1051
1059
|
export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
|
|
1052
1060
|
|
|
1053
1061
|
export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
|
|
@@ -1157,6 +1165,8 @@ export declare function percentFormatter<T = unknown>(value: T, options?: {
|
|
|
1157
1165
|
|
|
1158
1166
|
export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
|
|
1159
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
|
+
|
|
1160
1170
|
export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
|
|
1161
1171
|
|
|
1162
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;
|