From 704bb4d9d55a5a540d3a6ea65b19fcab7a5d17eb Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 8 May 2025 12:04:56 +0200 Subject: [PATCH] frontend: Change enums to const enums for WebComponent commands and events --- frontend/webcomponent/src/models/command.model.ts | 2 +- frontend/webcomponent/src/models/event.model.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/webcomponent/src/models/command.model.ts b/frontend/webcomponent/src/models/command.model.ts index b4393f0..9019a8b 100644 --- a/frontend/webcomponent/src/models/command.model.ts +++ b/frontend/webcomponent/src/models/command.model.ts @@ -1,7 +1,7 @@ /** * All available commands that can be sent to the WebComponent. */ -export enum WebComponentCommand { +export const enum WebComponentCommand { /** * Initializes the WebComponent with the given configuration. * @private diff --git a/frontend/webcomponent/src/models/event.model.ts b/frontend/webcomponent/src/models/event.model.ts index 8281fdc..72f416c 100644 --- a/frontend/webcomponent/src/models/event.model.ts +++ b/frontend/webcomponent/src/models/event.model.ts @@ -2,7 +2,7 @@ * All available events that can be emitted by the WebComponent. * @category Communication */ -export enum WebComponentEvent { +export const enum WebComponentEvent { /** * Event emitted when the local participant joins the room. */