Rollup upgrade
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.ts
index 1073fcab94fa77fe2babf41ad3fd7aabcbb8e6b5..31452ce0149225884e64d92943625fe775e0102a 100644 (file)
@@ -9,7 +9,7 @@ import Utils from '../utils/Utils';
 // Conditionally export ThreadWorker instance for pool usage
 export let threadWorker;
 if (Utils.workerPoolInUse()) {
-  threadWorker = new ThreadWorker(startChargingStation, { maxInactiveTime: Constants.WORKER_POOL_MAX_INACTIVE_TIME, async: false });
+  threadWorker = new ThreadWorker<StationWorkerData>(startChargingStation, { maxInactiveTime: Constants.WORKER_POOL_MAX_INACTIVE_TIME, async: false });
 }
 
 if (!isMainThread) {