From: Jérôme Benoit Date: Sat, 24 Sep 2022 22:02:58 +0000 (+0200) Subject: Align some types definition in UI X-Git-Tag: v1.1.74~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=36999e7745b090d38c68015929b5d223b4162613;p=e-mobility-charging-stations-simulator.git Align some types definition in UI Signed-off-by: Jérôme Benoit --- 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[];