X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=abc33752cb10616fde5474a4f68c2843675a911c;hb=c4ab56bac3353a08b0b7e058e9edfcfc0e629c94;hp=a7a2e1fadf284527ad33d1fa57b8534fb54ffb66;hpb=269de5835f83c14f7432c0049a6606a55e1b556e;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index a7a2e1fa..abc33752 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -1,9 +1,9 @@ -import type { RequestPayload, ResponsePayload } from './internal'; +import type { RequestPayload, ResponsePayload } from './UIProtocol'; export type BroadcastChannelRequest = [ string, BroadcastChannelProcedureName, - BroadcastChannelRequestPayload + BroadcastChannelRequestPayload, ]; export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]; @@ -37,4 +37,6 @@ export interface BroadcastChannelResponsePayload hashId: string; } -export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse }; +export interface MessageEvent { + data: BroadcastChannelRequest | BroadcastChannelResponse; +}