build(ci): fix linter errors
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 7d9895b847d0333dd885e90d78f66ca4367f8252..60d8f8b4a28576dcd0bfbc40dadccdc9431851e8 100644 (file)
@@ -1787,7 +1787,7 @@ export class ChargingStation extends EventEmitter {
     }
   }
 
-  private async onClose(code: number, reason: Buffer): Promise<void> {
+  private async onClose(code: WebSocketCloseEventStatusCode, reason: Buffer): Promise<void> {
     switch (code) {
       // Normal close
       case WebSocketCloseEventStatusCode.CLOSE_NORMAL:
@@ -1892,7 +1892,7 @@ export class ChargingStation extends EventEmitter {
 
   private async onMessage(data: RawData): Promise<void> {
     let request: IncomingRequest | Response | ErrorResponse | undefined;
-    let messageType: number | undefined;
+    let messageType: MessageType | undefined;
     let errorMsg: string;
     try {
       // eslint-disable-next-line @typescript-eslint/no-base-to-string