mixlea-utils-js 0.1.47 → 0.1.49
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 +342 -334
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare function alwaysResolveUndefined(): Promise<unknown>;
|
|
|
15
15
|
|
|
16
16
|
export declare function alwaysReturn<T>(returnValue: T): () => T;
|
|
17
17
|
|
|
18
|
+
export declare function alwaysReturnEmptyRecord(): {};
|
|
19
|
+
|
|
18
20
|
export declare function alwaysReturnFalse(): boolean;
|
|
19
21
|
|
|
20
22
|
export declare function alwaysReturnNullish(): null;
|
|
@@ -1104,6 +1106,8 @@ export declare function objectShallowMap(obj: Record<any, any>, keyFn: (key: any
|
|
|
1104
1106
|
*/
|
|
1105
1107
|
export declare function objectSome(obj: any, validateFunc: (fieldValue: any) => boolean, fields?: string[] | null, defaultValue?: boolean): boolean;
|
|
1106
1108
|
|
|
1109
|
+
export declare function objectSomeFields(input: any, fields: string[], func: (fieldValue: any, field: string) => boolean): boolean;
|
|
1110
|
+
|
|
1107
1111
|
export declare function objectStringify(obj: Record<string, any>, allowDots?: boolean): string;
|
|
1108
1112
|
|
|
1109
1113
|
export declare function objectToArray<T extends Record<string, any>>(obj: Record<string, any>, callback: (key: string, value: any) => T): T[];
|