X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=077c2f3750acce4fe2e6ece971e8aff3ba5d5d09;hb=2162e174630d4335e0fb8e7d587683b96af0d9a3;hp=caa56e9ff9ae5e674c069bd98c828ced97495cd5;hpb=09e5a7a8ed45886b6bf1434c4e49c945ded4c7d8;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index caa56e9f..077c2f37 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -1,11 +1,14 @@ import type { RequestPayload, ResponsePayload } from './UIProtocol.js' export type BroadcastChannelRequest = [ - string, + `${string}-${string}-${string}-${string}-${string}`, BroadcastChannelProcedureName, BroadcastChannelRequestPayload ] -export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload] +export type BroadcastChannelResponse = [ + `${string}-${string}-${string}-${string}-${string}`, + BroadcastChannelResponsePayload +] export enum BroadcastChannelProcedureName { START_CHARGING_STATION = 'startChargingStation',