Use generic for worker data type.
[e-mobility-charging-stations-simulator.git] / src / utils / Statistics.ts
index 966f1b57a6cc2b61de80485bc32c7cb57abbb5c2..2aa99b0d4c9f317c78d14a052c65da80f4cbac4c 100644 (file)
@@ -14,7 +14,7 @@ export default class Statistics {
 
   public constructor(objName: string) {
     this.objId = objName;
-    this.commandsStatistics = { id: this.objId ? this.objId : ' Object id not specified', commandsStatisticsData: {} } as CommandStatistics;
+    this.commandsStatistics = { id: this.objId ? this.objId : 'Object id not specified', commandsStatisticsData: {} };
   }
 
   public addMessage(command: RequestCommand | IncomingRequestCommand, messageType: MessageType): void {