From 4e4199c8e4c7f11216be46b0490e8214e04f702d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 9 Apr 2022 18:34:08 +0200 Subject: [PATCH] Fix a type casting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStationWorker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }); } } -- 2.34.1