// Add message listener to start charging station from main thread
addMessageListener();
if (!Utils.isUndefined(workerData)) {
- startChargingStation({
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
- index: workerData.index as number,
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
- templateFile: workerData.templateFile as string,
- });
+ startChargingStation(workerData as ChargingStationWorkerData);
}
}