- const nbStation = stationURL.numberOfStation ? stationURL.numberOfStation : 0;
- numStationsTotal += nbStation;
- for (let index = 1; index <= nbStation; index++) {
- const worker = new Wrk('./dist/charging-station/StationWorker.js', {
+ const nbStations = stationURL.numberOfStations ? stationURL.numberOfStations : 0;
+ for (let index = 1; index <= nbStations; index++) {
+ const workerData: StationWorkerData = {