repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
ConfigurationUtils.ts
diff --git
a/src/utils/ConfigurationUtils.ts
b/src/utils/ConfigurationUtils.ts
index eb992cadfa8ad5db3463ea5b9bc0796ad6a30b21..73bd9ceb8dbf4124ad34ed8962c94493f75be671 100644
(file)
--- 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 { 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 => {
import { WorkerProcessType } from '../worker';
export const logPrefix = (): string => {
@@
-68,12
+68,12
@@
export const checkWorkerProcessType = (workerProcessType: WorkerProcessType): vo
};
export const checkWorkerElementsPerWorker = (
};
export const checkWorkerElementsPerWorker = (
- elementsPerWorker:
number | 'auto' | 'single'
| undefined,
+ elementsPerWorker:
ElementsPerWorkerType
| undefined,
): void => {
if (
elementsPerWorker !== undefined &&
elementsPerWorker !== 'auto' &&
): void => {
if (
elementsPerWorker !== undefined &&
elementsPerWorker !== 'auto' &&
- elementsPerWorker !== '
single
' &&
+ elementsPerWorker !== '
all
' &&
!Number.isSafeInteger(elementsPerWorker)
) {
throw new SyntaxError(
!Number.isSafeInteger(elementsPerWorker)
) {
throw new SyntaxError(