Fix Json type definition naming
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationWorker.ts
index 6a6f631ca4597809fedafcaaeb696e8c35bd50d1..514fba8c6811c9652133a70f9b882b9818c698b7 100644 (file)
@@ -23,10 +23,7 @@ if (Utils.workerPoolInUse()) {
   // Add message listener to start charging station from main thread
   addMessageListener();
   if (!Utils.isUndefined(workerData)) {
-    startChargingStation({
-      index: (workerData as Record<string, unknown>).index as number,
-      templateFile: (workerData as Record<string, unknown>).templateFile as string,
-    });
+    startChargingStation(workerData as ChargingStationWorkerData);
   }
 }