Initial portage to TypeScript.
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.ts
1 import { isMainThread, workerData } from 'worker_threads';
2
3 import ChargingStation from './ChargingStation';
4
5 if (!isMainThread) {
6 const station = new ChargingStation(workerData.index, workerData.templateFile);
7 station.start();
8 }