From: Jérôme Benoit Date: Sat, 9 Apr 2022 16:34:08 +0000 (+0200) Subject: Fix a type casting X-Git-Tag: v1.1.57~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4e4199c8e4c7f11216be46b0490e8214e04f702d;p=e-mobility-charging-stations-simulator.git Fix a type casting Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index 6a6f631c..fb551a45 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -24,8 +24,8 @@ if (Utils.workerPoolInUse()) { addMessageListener(); if (!Utils.isUndefined(workerData)) { startChargingStation({ - index: (workerData as Record).index as number, - templateFile: (workerData as Record).templateFile as string, + index: (workerData as ChargingStationWorkerData).index, + templateFile: (workerData as ChargingStationWorkerData).templateFile, }); } }