voiptime-components 1.13.30 → 1.13.32
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/assets/parser.worker-BcD_SskJ.js +39 -0
- package/dist/index.cjs.js +1 -39
- package/dist/index.d.ts +14 -4
- package/dist/index.es.js +4912 -25865
- package/dist/index.umd.js +1 -39
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -898,11 +898,11 @@ export declare interface FieldValidation {
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
export declare class FileParser {
|
|
901
|
+
private static workerPool;
|
|
902
|
+
static getWorkerPool(): WorkerPool;
|
|
901
903
|
static isDataFile(file: File): boolean;
|
|
902
|
-
static parseFile(file: File, maxRows?: number, returnData?: boolean
|
|
903
|
-
|
|
904
|
-
private static parseCSVLine;
|
|
905
|
-
private static parseExcel;
|
|
904
|
+
static parseFile(file: File, maxRows?: number, returnData?: boolean): Promise<ParseResult>;
|
|
905
|
+
static terminateWorkers(): void;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
export declare class FileValidator {
|
|
@@ -2390,6 +2390,16 @@ export declare function withName(name: string, validator: ValidatorFn): WrappedV
|
|
|
2390
2390
|
|
|
2391
2391
|
export declare function withParams(params: Record<string, any>, validator: ValidatorFn): WrappedValidator;
|
|
2392
2392
|
|
|
2393
|
+
declare class WorkerPool {
|
|
2394
|
+
private worker;
|
|
2395
|
+
private resolveMap;
|
|
2396
|
+
private messageId;
|
|
2397
|
+
constructor();
|
|
2398
|
+
parseFile(file: File, maxRows?: number, returnData?: boolean): Promise<ParseResult>;
|
|
2399
|
+
terminate(): void;
|
|
2400
|
+
private initWorker;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2393
2403
|
export declare interface WrappedValidator extends ValidatorFn {
|
|
2394
2404
|
$validatorName?: string;
|
|
2395
2405
|
$params?: Record<string, any>;
|