refactor: strong type UUID usage in UI protocol
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index caa56e9ff9ae5e674c069bd98c828ced97495cd5..077c2f3750acce4fe2e6ece971e8aff3ba5d5d09 100644 (file)
@@ -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',