fix: use aliased payload type on broadcast channel
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 21 Jul 2023 22:57:27 +0000 (00:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 21 Jul 2023 22:57:27 +0000 (00:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts

index 87ceaca97a0dcece14ce393fd335826018f69c76..422c964bcbedd232d28f1a7005efc09c7e5e989b 100644 (file)
@@ -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;