From: Jérôme Benoit Date: Fri, 21 Jul 2023 22:57:27 +0000 (+0200) Subject: fix: use aliased payload type on broadcast channel X-Git-Tag: v1.2.20~171 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=346b47e0141c0b01c40f052437355e126fc28428;p=e-mobility-charging-stations-simulator.git fix: use aliased payload type on broadcast channel Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts index 87ceaca9..422c964b 100644 --- a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts @@ -15,6 +15,7 @@ import { DataTransferStatus, type DiagnosticsStatusNotificationRequest, type DiagnosticsStatusNotificationResponse, + type EmptyObject, type FirmwareStatusNotificationRequest, type FirmwareStatusNotificationResponse, type HeartbeatRequest, @@ -42,11 +43,11 @@ import { OCPP16ServiceUtils } from '../ocpp'; const moduleName = 'ChargingStationWorkerBroadcastChannel'; type CommandResponse = + | EmptyObject | StartTransactionResponse | StopTransactionResponse | AuthorizeResponse | BootNotificationResponse - | StatusNotificationResponse | HeartbeatResponse | DataTransferResponse;