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.
@@ -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<T, K extends keyof T>(o: T, fields: K[]): ObjectOrEmpty<T>;
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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.36",
4
+ "version": "0.1.38",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {