From: Jérôme Benoit Date: Fri, 8 Dec 2023 22:43:09 +0000 (+0100) Subject: refactor: silence TS type casting error X-Git-Tag: v1.2.30~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=50fb0298a0efa3da95fe9a67ba87e20295b30f6e;p=e-mobility-charging-stations-simulator.git refactor: silence TS type casting error Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index b09134f8..622eef71 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -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, ); }