refactor: cleanup some type casting
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / ui-services / AbstractUIService.ts
index 204b5431629e82c753bc57d52fe885753344ebfb..6aed70a1b555cfcf5718cc153d02edc3e25da894 100644 (file)
@@ -4,6 +4,7 @@ import {
   type BroadcastChannelRequestPayload,
   type ChargingStationOptions,
   ConfigurationSection,
+  type JsonObject,
   type JsonType,
   ProcedureName,
   type ProtocolRequest,
@@ -326,7 +327,7 @@ export abstract class AbstractUIService {
     try {
       return {
         status: ResponseStatus.SUCCESS,
-        state: Bootstrap.getInstance().getState()
+        state: Bootstrap.getInstance().getState() as unknown as JsonObject
       } satisfies ResponsePayload
     } catch (error) {
       return {