build(deps): apply updates
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerTypes.ts
index 9204eadce8456c5c17c311c8c8ce6574e6f05a29..1b7cbb300cf95a7ac5c9ba22bc4e8ac4a622afe6 100644 (file)
@@ -1,11 +1,11 @@
-import type { Worker } from 'worker_threads';
+import type { Worker } from 'node:worker_threads';
 
 import type { PoolOptions } from 'poolifier';
 
 export enum WorkerProcessType {
-  WORKER_SET = 'workerSet',
-  DYNAMIC_POOL = 'dynamicPool',
-  STATIC_POOL = 'staticPool',
+  workerSet = 'workerSet',
+  dynamicPool = 'dynamicPool',
+  staticPool = 'staticPool',
 }
 
 export type MessageHandler<T> = (this: T, message: unknown) => void;
@@ -33,5 +33,5 @@ export type WorkerMessage<T extends WorkerData> = {
 };
 
 export enum WorkerMessageEvents {
-  START_WORKER_ELEMENT = 'startWorkerElement',
+  startWorkerElement = 'startWorkerElement',
 }