diff --git a/extensions/discord/src/voice/realtime.wake-name-followup.test.ts b/extensions/discord/src/voice/realtime.wake-name-followup.test.ts index 8970b65d8e8..39e0f6b3623 100644 --- a/extensions/discord/src/voice/realtime.wake-name-followup.test.ts +++ b/extensions/discord/src/voice/realtime.wake-name-followup.test.ts @@ -1,7 +1,7 @@ import { afterEach, describe, expect, it, vi } from "vitest"; import { DiscordRealtimeVoiceSession } from "./realtime.js"; -type SessionWithPrivates = DiscordRealtimeVoiceSession & { +type WakeNameFollowupTestSession = { armWakeNameFollowup: () => void; consumePendingWakeNameFollowup: () => unknown; pendingWakeNameFollowup?: unknown; @@ -11,7 +11,7 @@ type SessionWithPrivates = DiscordRealtimeVoiceSession & { }; }; -function createSession(): SessionWithPrivates { +function createSession(): WakeNameFollowupTestSession { return new DiscordRealtimeVoiceSession({ cfg: {}, discordConfig: { voice: { realtime: {} } }, @@ -21,7 +21,7 @@ function createSession(): SessionWithPrivates { }, mode: "agent-proxy", runAgentTurn: vi.fn(), - } as never) as SessionWithPrivates; + } as never) as unknown as WakeNameFollowupTestSession; } describe("DiscordRealtimeVoiceSession wake-name follow-up cache", () => {