uri?: string;
}
+export type elementsPerWorkerType = number | 'auto' | 'all';
+
export interface WorkerConfiguration {
processType?: WorkerProcessType;
startDelay?: number;
- elementsPerWorker?: number | 'auto' | 'all';
+ elementsPerWorker?: elementsPerWorkerType;
elementStartDelay?: number;
poolMinSize?: number;
poolMaxSize?: number;
import { Constants } from './Constants';
import { isNotEmptyString, logPrefix as utilsLogPrefix } from './Utils';
import { FileType, StorageType } from '../types';
+import type { elementsPerWorkerType } from '../types/ConfigurationData';
import { WorkerProcessType } from '../worker';
export const logPrefix = (): string => {
};
export const checkWorkerElementsPerWorker = (
- elementsPerWorker: number | 'auto' | 'all' | undefined,
+ elementsPerWorker: elementsPerWorkerType | undefined,
): void => {
if (
elementsPerWorker !== undefined &&