refactor: silence TS type casting error
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 8 Dec 2023 22:43:09 +0000 (23:43 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 8 Dec 2023 22:43:09 +0000 (23:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index b09134f88e9e1f915519bf325b14c32407b50d44..622eef71becf56cc164977c27065a98522d3d4bc 100644 (file)
@@ -91,7 +91,6 @@ import {
   type HeartbeatResponse,
   type IncomingRequest,
   type IncomingRequestCommand,
-  type JsonType,
   MessageType,
   MeterValueMeasurand,
   type MeterValuesRequest,
@@ -1827,7 +1826,7 @@ export class ChargingStation extends EventEmitter {
         messageType,
       )} is not an array`,
       undefined,
-      cachedRequest as JsonType,
+      cachedRequest,
     );
   }