X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorker.ts;h=dde976aea42278d2c3e17c63ec891e9c44849f58;hb=ef16e252673a8704c0fc67d9e3588b07706b735a;hp=20c4488224f620f68e415426384446fb1239a7ed;hpb=a4624c96a6c159b4885f5d0baaf592ceec0bab30;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Worker.ts b/src/types/Worker.ts index 20c44882..dde976ae 100644 --- a/src/types/Worker.ts +++ b/src/types/Worker.ts @@ -6,8 +6,17 @@ export enum WorkerProcessType { STATIC_POOL = 'staticPool' } -// FIXME: make it more generic -export interface WorkerData { +export interface WorkerOptions { + startDelay?: number; + poolMaxSize?: number; + poolMinSize?: number; + elementsPerWorker?: number; +} + +// eslint-disable-next-line @typescript-eslint/no-empty-interface +export interface WorkerData {} + +export interface StationWorkerData extends WorkerData { index: number; templateFile: string; }