Align some types definition in UI
[e-mobility-charging-stations-simulator.git] / src / ui / web / src / types / ChargingStationType.ts
index dfa02403a72d365038eac1f9b5fd88a28e863d70..292cd1e13c6b1e5804a2b935a436ac621d394934 100644 (file)
@@ -3,7 +3,11 @@ import type { JsonObject } from './JsonType';
 export type ChargingStationData = {
   stationInfo: ChargingStationInfo;
   started: boolean;
-  wsState?: number;
+  wsState?:
+    | typeof WebSocket.CONNECTING
+    | typeof WebSocket.OPEN
+    | typeof WebSocket.CLOSING
+    | typeof WebSocket.CLOSED;
   bootNotificationResponse: BootNotificationResponse;
   connectors: ConnectorStatus[];
   automaticTransactionGeneratorStatuses?: Status[];