mixlea-utils-js 0.1.36 → 0.1.38
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 +513 -500
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1025,6 +1025,10 @@ export declare function objectEqual(obj: any, obj1: any, opts?: {
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
export declare function objectFieldsEvery(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[], defaultValue?: boolean): boolean;
|
|
1027
1027
|
|
|
1028
|
+
export declare function objectFieldsSetNull(o: any, fields: string[]): Record<string, any>;
|
|
1029
|
+
|
|
1030
|
+
export declare function objectFieldsSetUndefined(o: any, fields: string[]): Record<string, any>;
|
|
1031
|
+
|
|
1028
1032
|
/**
|
|
1029
1033
|
* 对象字段校验
|
|
1030
1034
|
* @param obj 检测对象
|
|
@@ -1055,13 +1059,11 @@ export declare function objectOmit<O extends Record<string, any>>(input: O, chec
|
|
|
1055
1059
|
|
|
1056
1060
|
export declare function objectOmitFields<O extends object, F extends keyof O>(input: O, fields: F[]): Omit<O, F>;
|
|
1057
1061
|
|
|
1058
|
-
declare type ObjectOrEmpty<T> = T extends object ? T : {};
|
|
1059
|
-
|
|
1060
1062
|
export declare function objectPathsJoin(record: Record<string, any>, paths: string[], joinSymbol?: string): string;
|
|
1061
1063
|
|
|
1062
1064
|
export declare function objectPick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
1063
1065
|
|
|
1064
|
-
export declare function objectRemoveFields
|
|
1066
|
+
export declare function objectRemoveFields(o: any, fields: string[]): Record<string, any>;
|
|
1065
1067
|
|
|
1066
1068
|
export declare function objectRemoveNullishFields<T extends Record<string, any>>(obj: T): Partial<T>;
|
|
1067
1069
|
|