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