From: Jérôme Benoit Date: Thu, 21 Jan 2021 23:14:29 +0000 (+0100) Subject: Fix type cast X-Git-Tag: v1.0.1-0~126 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=902250529d3aab51cfdb21ba467fc082caf0c765;p=e-mobility-charging-stations-simulator.git Fix type cast Signed-off-by: Jérôme Benoit --- diff --git a/src/start.ts b/src/start.ts index 1baea432..41ae5d1e 100644 --- a/src/start.ts +++ b/src/start.ts @@ -18,10 +18,10 @@ class Bootstrap { try { const nbStations = stationURL.numberOfStations ? stationURL.numberOfStations : 0; for (let index = 1; index <= nbStations; index++) { - const workerData = { + const workerData: WorkerData = { index, templateFile: stationURL.file - } as WorkerData; + }; if (Configuration.useWorkerPool()) { worker = new Wrk('./dist/charging-station/StationWorker.js', workerData); worker.start().catch(() => { });