build(deps): apply updates
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / ui-services / UIService001.ts
index 598ebb269413c310b54e5a6072b939758e9e0e13..e7570c1a24f1b03f4b2e48a9e3a3f58fae25bbdb 100644 (file)
@@ -1,16 +1,14 @@
 import { AbstractUIService } from './AbstractUIService';
-import { type ProcedureName, type ProtocolRequestHandler, ProtocolVersion } from '../../../types';
+import { type ProtocolRequestHandler, ProtocolVersion } from '../../../types';
 import type { AbstractUIServer } from '../AbstractUIServer';
 
 export class UIService001 extends AbstractUIService {
   constructor(uiServer: AbstractUIServer) {
     super(uiServer, ProtocolVersion['0.0.1']);
-    for (const procedureName of Object.keys(
-      AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMap
-    ) as ProcedureName[]) {
+    for (const procedureName of AbstractUIService.ProcedureNameToBroadCastChannelProcedureNameMapping.keys()) {
       this.requestHandlers.set(
         procedureName,
-        this.handleProtocolRequest.bind(this) as ProtocolRequestHandler
+        this.handleProtocolRequest.bind(this) as ProtocolRequestHandler,
       );
     }
   }