From: Jérôme Benoit Date: Tue, 14 Nov 2023 17:16:05 +0000 (+0100) Subject: build(ci): fix linter errors X-Git-Tag: v1.2.25~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9e9ddf706b4c76166d7f8f011a73eb802fc893f2;p=e-mobility-charging-stations-simulator.git build(ci): fix linter errors Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 7d9895b8..60d8f8b4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1787,7 +1787,7 @@ export class ChargingStation extends EventEmitter { } } - private async onClose(code: number, reason: Buffer): Promise { + private async onClose(code: WebSocketCloseEventStatusCode, reason: Buffer): Promise { switch (code) { // Normal close case WebSocketCloseEventStatusCode.CLOSE_NORMAL: @@ -1892,7 +1892,7 @@ export class ChargingStation extends EventEmitter { private async onMessage(data: RawData): Promise { 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