import ChargingStation from './ChargingStation';
if (!isMainThread) {
- const station = new ChargingStation(workerData.index, workerData.templateFile);
+ const station = new ChargingStation(workerData.index as number, workerData.templateFile as string);
station.start();
}