mixlea-utils-js 0.1.33 → 0.1.35
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 +2130 -2091
- package/dist/mixlea-utils-js.umd.js +13 -2
- package/dist/types/index.d.ts +20 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -373,6 +373,8 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
|
|
|
373
373
|
|
|
374
374
|
export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
|
|
375
375
|
|
|
376
|
+
export declare function deferMicrotask(func: VoidFunction): void;
|
|
377
|
+
|
|
376
378
|
export declare const deleteConfigStoreAtKey: (key: string) => void;
|
|
377
379
|
|
|
378
380
|
export declare function dispatchNodeEvent<T = any>(el: T, e: CommonEvent | SpecialEvent): Promise<T>;
|
|
@@ -472,6 +474,8 @@ export declare function execFunc(func: Function): any;
|
|
|
472
474
|
|
|
473
475
|
export declare function executePromises<T extends any[]>(promises: [...Array<Promise<T[number]>>]): Promise<T>;
|
|
474
476
|
|
|
477
|
+
export declare function execWebWorker<T extends any[], R>(fn: (...args: T) => R | Promise<R>, ...args: T): Promise<R>;
|
|
478
|
+
|
|
475
479
|
declare function exportFile({ fileName, fallbackFileName, file, }: {
|
|
476
480
|
file: File;
|
|
477
481
|
fileName?: string;
|
|
@@ -1461,6 +1465,22 @@ export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOr
|
|
|
1461
1465
|
*/
|
|
1462
1466
|
export declare function wordCount(str: string, word: string): number;
|
|
1463
1467
|
|
|
1468
|
+
declare class WorkerPool {
|
|
1469
|
+
private worker;
|
|
1470
|
+
constructor();
|
|
1471
|
+
exec<T extends any[], R>(fn: (...args: T) => R | Promise<R>, ...args: T): Promise<R>;
|
|
1472
|
+
terminate(): void;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
export declare const workerPool: WorkerPool;
|
|
1476
|
+
|
|
1464
1477
|
export declare function zipArrayObject(param: Record<string, any[]>): any[];
|
|
1465
1478
|
|
|
1466
1479
|
export { }
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
declare global {
|
|
1483
|
+
interface Window {
|
|
1484
|
+
__MIXLEA_UTILS_JS_WORKER_POOL__: WorkerPool | undefined;
|
|
1485
|
+
}
|
|
1486
|
+
}
|