X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FStationWorker.ts;h=68c3ea24c0f96c4def2f5c187050bd5e816dc04b;hb=b95523058c121b22e086339675407f5266250b7b;hp=f54334e952d4cb86e0f50557209e87757c68b2a1;hpb=6af9012e5b9ef2ed6f4fe8a9696b40ac0e8da4d0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/StationWorker.ts b/src/charging-station/StationWorker.ts index f54334e9..68c3ea24 100644 --- a/src/charging-station/StationWorker.ts +++ b/src/charging-station/StationWorker.ts @@ -3,6 +3,6 @@ import { isMainThread, workerData } from 'worker_threads'; import ChargingStation from './ChargingStation'; if (!isMainThread) { - const station = new ChargingStation(workerData.index, workerData.templateFile); + const station = new ChargingStation(workerData.index as number, workerData.templateFile as string); station.start(); }