From 36999e7745b090d38c68015929b5d223b4162613 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 25 Sep 2022 00:02:58 +0200 Subject: [PATCH] Align some types definition in UI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/ui/web/src/types/ChargingStationType.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/web/src/types/ChargingStationType.ts b/src/ui/web/src/types/ChargingStationType.ts index dfa02403..292cd1e1 100644 --- a/src/ui/web/src/types/ChargingStationType.ts +++ b/src/ui/web/src/types/ChargingStationType.ts @@ -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[]; -- 2.34.1