From 23039fbf8012083bc31d8aa46057f60a925dfc71 Mon Sep 17 00:00:00 2001 From: fkwp Date: Thu, 30 Apr 2026 20:36:42 +0200 Subject: [PATCH] add proper interface Co-authored-by: Copilot --- src/livekit/openIDSFU.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/livekit/openIDSFU.ts b/src/livekit/openIDSFU.ts index 20eb265b..9cf4e5a9 100644 --- a/src/livekit/openIDSFU.ts +++ b/src/livekit/openIDSFU.ts @@ -192,7 +192,12 @@ async function getLiveKitJWT( delayEndpointBaseUrl?: string, delayId?: string, ): Promise<{ url: string; jwt: string }> { - let bodyDalayParts = {}; + interface IDelayParams { + delay_id?: string; + delay_timeout?: number; + delay_cs_api_url?: string; + } + let bodyDalayParts: IDelayParams = {}; // Also check for empty string if (delayId && delayEndpointBaseUrl) { const delayTimeoutMs = @@ -205,7 +210,7 @@ async function getLiveKitJWT( } const makeRequest = async ( - delayParts: Record, + delayParts: IDelayParams, ): Promise => { return await fetch(livekitServiceURL + "/sfu/get", { method: "POST",