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 src/charging-station/Utils.ts -> src/charging-station/Helpers.ts
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerTypes.ts
diff --git
a/src/worker/WorkerTypes.ts
b/src/worker/WorkerTypes.ts
index b7b21ba30f580c39ffd9cd925a1b106b77fbc6d8..12d5ab26f13f7d62c408f20a8f55f09b862ca7b5 100644
(file)
--- a/
src/worker/WorkerTypes.ts
+++ b/
src/worker/WorkerTypes.ts
@@
-20,6
+20,8
@@
export interface SetInfo {
export enum WorkerSetEvents {
error = 'error',
export enum WorkerSetEvents {
error = 'error',
+ elementStarted = 'elementStarted',
+ elementError = 'elementError',
}
export const WorkerEvents = {
}
export const WorkerEvents = {
@@
-45,10
+47,12
@@
export interface WorkerSetElement {
}
export interface WorkerMessage<T extends WorkerData> {
}
export interface WorkerMessage<T extends WorkerData> {
-
id
: WorkerMessageEvents;
+
event
: WorkerMessageEvents;
data: T;
}
export enum WorkerMessageEvents {
startWorkerElement = 'startWorkerElement',
data: T;
}
export enum WorkerMessageEvents {
startWorkerElement = 'startWorkerElement',
+ startWorkerElementError = 'startWorkerElementError',
+ startedWorkerElement = 'startedWorkerElement',
}
}