repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: rename a template key to a more sensible name
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerTypes.ts
diff --git
a/src/worker/WorkerTypes.ts
b/src/worker/WorkerTypes.ts
index 9204eadce8456c5c17c311c8c8ce6574e6f05a29..1b7cbb300cf95a7ac5c9ba22bc4e8ac4a622afe6 100644
(file)
--- 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 {
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;
}
export type MessageHandler<T> = (this: T, message: unknown) => void;
@@
-33,5
+33,5
@@
export type WorkerMessage<T extends WorkerData> = {
};
export enum WorkerMessageEvents {
};
export enum WorkerMessageEvents {
-
START_WORKER_ELEMENT
= 'startWorkerElement',
+
startWorkerElement
= 'startWorkerElement',
}
}