From: Jérôme Benoit Date: Sat, 27 Aug 2022 16:42:40 +0000 (+0200) Subject: Fix build X-Git-Tag: v1.1.68~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b3b45e6c81c2a01d793c3dc9ab48157e51c82ca3;p=e-mobility-charging-stations-simulator.git Fix build Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/UIServiceWorkerBroadcastChannel.ts b/src/charging-station/UIServiceWorkerBroadcastChannel.ts index 8a85565e..c64a7ccc 100644 --- a/src/charging-station/UIServiceWorkerBroadcastChannel.ts +++ b/src/charging-station/UIServiceWorkerBroadcastChannel.ts @@ -1,3 +1,4 @@ +import type { ResponsePayload } from '../types/UIProtocol'; import type { BroadcastChannelResponse, MessageEvent } from '../types/WorkerBroadcastChannel'; import logger from '../utils/Logger'; import type AbstractUIService from './ui-server/ui-services/AbstractUIService'; @@ -24,7 +25,7 @@ export default class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChan // TODO: handle multiple responses for the same uuid delete responsePayload.hashId; - this.uiService.sendResponse(uuid, responsePayload); + this.uiService.sendResponse(uuid, responsePayload as ResponsePayload); } private messageErrorHandler(messageEvent: MessageEvent): void { diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 00f648f3..0ca44ada 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -34,7 +34,7 @@ export type BroadcastChannelRequestPayload = | HashIdBroadcastChannelRequestPayload | HashIdsBroadcastChannelRequestPayload; -export interface BroadcastChannelResponsePayload extends Omit { +export interface BroadcastChannelResponsePayload extends ResponsePayload { hashId: string; }