Fix type cast
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 21 Jan 2021 23:14:29 +0000 (00:14 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 21 Jan 2021 23:14:29 +0000 (00:14 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/start.ts

index 1baea43212e7668446ec068a83d55fe1f8e0920f..41ae5d1e06d6aaafb8cd1760ccc34170f32f4f41 100644 (file)
@@ -18,10 +18,10 @@ class Bootstrap {
           try {
             const nbStations = stationURL.numberOfStations ? stationURL.numberOfStations : 0;
             for (let index = 1; index <= nbStations; index++) {
-              const workerData = {
+              const workerData: WorkerData = {
                 index,
                 templateFile: stationURL.file
-              } as WorkerData;
+              };
               if (Configuration.useWorkerPool()) {
                 worker = new Wrk('./dist/charging-station/StationWorker.js', workerData);
                 worker.start().catch(() => { });