voiptime-components 1.13.31 → 1.13.33

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/index.d.ts CHANGED
@@ -898,9 +898,11 @@ export declare interface FieldValidation {
898
898
  }
899
899
 
900
900
  export declare class FileParser {
901
- private static worker;
901
+ private static workerPool;
902
+ static getWorkerPool(): WorkerPool;
902
903
  static isDataFile(file: File): boolean;
903
- static parseFile(file: File, maxRows?: number, returnData?: boolean, onProgress?: (progress: number) => void): Promise<ParseResult>;
904
+ static parseFile(file: File, maxRows?: number, returnData?: boolean): Promise<ParseResult>;
905
+ static terminateWorkers(): void;
904
906
  }
905
907
 
906
908
  export declare class FileValidator {
@@ -2388,6 +2390,16 @@ export declare function withName(name: string, validator: ValidatorFn): WrappedV
2388
2390
 
2389
2391
  export declare function withParams(params: Record<string, any>, validator: ValidatorFn): WrappedValidator;
2390
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
+
2391
2403
  export declare interface WrappedValidator extends ValidatorFn {
2392
2404
  $validatorName?: string;
2393
2405
  $params?: Record<string, any>;