import path from 'path';
import { fileURLToPath } from 'url';
-import { isMainThread } from 'worker_threads';
+import { type Worker, isMainThread } from 'worker_threads';
import chalk from 'chalk';
workerChoiceStrategy: Configuration.getWorker().poolStrategy,
},
messageHandler: this.messageHandler.bind(this) as (
+ this: Worker,
msg: ChargingStationWorkerMessage<ChargingStationWorkerMessageData>
) => void,
}