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
Fix meterStop type in stop transaction payload
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
Worker.ts
diff --git
a/src/types/Worker.ts
b/src/types/Worker.ts
index 4654fdcf6c57b7bf652773d60952ac112a5b6a8b..9d9692a720a1af4c32342df01354f6b1f375cd6d 100644
(file)
--- a/
src/types/Worker.ts
+++ b/
src/types/Worker.ts
@@
-1,11
+1,11
@@
-import
{ JsonType } from './JsonType
';
-import { PoolOptions } from 'poolifier';
-import
{ Worker } from 'worker_threads
';
+import
type { Worker } from 'worker_threads
';
+
+import
type { PoolOptions } from 'poolifier
';
export enum WorkerProcessType {
WORKER_SET = 'workerSet',
DYNAMIC_POOL = 'dynamicPool',
export enum WorkerProcessType {
WORKER_SET = 'workerSet',
DYNAMIC_POOL = 'dynamicPool',
- STATIC_POOL = 'staticPool'
+ STATIC_POOL = 'staticPool'
,
}
export interface WorkerOptions {
}
export interface WorkerOptions {
@@
-18,12
+18,7
@@
export interface WorkerOptions {
messageHandler?: (message: unknown) => void | Promise<void>;
}
messageHandler?: (message: unknown) => void | Promise<void>;
}
-export interface WorkerStartOptions {
- workerStartDelay: number;
- elementStartDelay: number;
-}
-
-export type WorkerData = JsonType;
+export type WorkerData = Record<string, unknown>;
export interface WorkerSetElement {
worker: Worker;
export interface WorkerSetElement {
worker: Worker;
@@
-37,6
+32,4
@@
export interface WorkerMessage<T extends WorkerData> {
export enum WorkerMessageEvents {
START_WORKER_ELEMENT = 'startWorkerElement',
export enum WorkerMessageEvents {
START_WORKER_ELEMENT = 'startWorkerElement',
- STOP_WORKER_ELEMENT = 'stopWorkerElement'
}
}
-