X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2FConfigurationUtils.ts;h=73bd9ceb8dbf4124ad34ed8962c94493f75be671;hb=6a4032b5d8f3cbaa18d3beddcdfe9d335c1cba90;hp=50bad0fad6fe8be75da647b4c9d875d681d1f975;hpb=c20d5d72396a96028bee5492fa7ea2475b8a109e;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/ConfigurationUtils.ts b/src/utils/ConfigurationUtils.ts index 50bad0fa..73bd9ceb 100644 --- a/src/utils/ConfigurationUtils.ts +++ b/src/utils/ConfigurationUtils.ts @@ -5,7 +5,7 @@ import chalk from 'chalk'; import { Constants } from './Constants'; import { isNotEmptyString, logPrefix as utilsLogPrefix } from './Utils'; -import { FileType, StorageType } from '../types'; +import { type ElementsPerWorkerType, FileType, StorageType } from '../types'; import { WorkerProcessType } from '../worker'; export const logPrefix = (): string => { @@ -68,7 +68,7 @@ export const checkWorkerProcessType = (workerProcessType: WorkerProcessType): vo }; export const checkWorkerElementsPerWorker = ( - elementsPerWorker: number | 'auto' | 'all' | undefined, + elementsPerWorker: ElementsPerWorkerType | undefined, ): void => { if ( elementsPerWorker !== undefined &&