X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStationWorker.ts;h=514fba8c6811c9652133a70f9b882b9818c698b7;hb=6f35d2daed5ff5d26de15c1547ffa3dbd013c5b3;hp=de0a47fe5d5745fd29b477ac072c046024922686;hpb=3fa0f0edb5e3bb9fff2b343fb4ad7fc6c7c8df34;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index de0a47fe..514fba8c 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -23,12 +23,7 @@ if (Utils.workerPoolInUse()) { // Add message listener to start charging station from main thread addMessageListener(); if (!Utils.isUndefined(workerData)) { - startChargingStation({ - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access - index: workerData.index as number, - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access - templateFile: workerData.templateFile as string, - }); + startChargingStation(workerData as ChargingStationWorkerData); } }