From c6e110c2f44b18fc7badf29f934269e0b0421254 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 27 Aug 2022 18:30:45 +0200 Subject: [PATCH] Add the source charging station that emits a response to broadcast channel MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/UIProtocol.ts | 1 + src/types/WorkerBroadcastChannel.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/UIProtocol.ts b/src/types/UIProtocol.ts index 463b205e..3a76bd00 100644 --- a/src/types/UIProtocol.ts +++ b/src/types/UIProtocol.ts @@ -45,4 +45,5 @@ export enum ResponseStatus { export interface ResponsePayload extends JsonObject { status: ResponseStatus; + hashIds?: string[]; } diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 0ca44ada..00f648f3 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -34,7 +34,7 @@ export type BroadcastChannelRequestPayload = | HashIdBroadcastChannelRequestPayload | HashIdsBroadcastChannelRequestPayload; -export interface BroadcastChannelResponsePayload extends ResponsePayload { +export interface BroadcastChannelResponsePayload extends Omit { hashId: string; } -- 2.34.1