X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStationWorker.ts;h=6a6f631ca4597809fedafcaaeb696e8c35bd50d1;hb=98c19a0738935a04ceedd45ccd198769ef91f035;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..6a6f631c 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -24,10 +24,8 @@ if (Utils.workerPoolInUse()) { 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, + index: (workerData as Record).index as number, + templateFile: (workerData as Record).templateFile as string, }); } }