X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerTypes.ts;h=1b7cbb300cf95a7ac5c9ba22bc4e8ac4a622afe6;hb=62340a29089d0753f45b57dc3e5b8d4871c7d736;hp=9204eadce8456c5c17c311c8c8ce6574e6f05a29;hpb=268a74bb051fcbbad532fd833f0d8fd2b33b6c64;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerTypes.ts b/src/worker/WorkerTypes.ts index 9204eadc..1b7cbb30 100644 --- a/src/worker/WorkerTypes.ts +++ b/src/worker/WorkerTypes.ts @@ -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 = (this: T, message: unknown) => void; @@ -33,5 +33,5 @@ export type WorkerMessage = { }; export enum WorkerMessageEvents { - START_WORKER_ELEMENT = 'startWorkerElement', + startWorkerElement = 'startWorkerElement', }