chore: Fix types in tests 34/N.

This commit is contained in:
cpojer
2026-02-17 15:45:59 +09:00
parent 49bd9f75f4
commit ed75d30ad3
7 changed files with 14 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import { describe, expect, it, vi } from "vitest";
import type { GatewayChatClient } from "./gateway-chat.js";
import { createSessionActions } from "./tui-session-actions.js";
import type { TuiStateAccess } from "./tui-types.js";
@@ -49,7 +50,7 @@ describe("tui session actions", () => {
const requestRender = vi.fn();
const { refreshSessionInfo } = createSessionActions({
client: { listSessions } as { listSessions: typeof listSessions },
client: { listSessions } as unknown as GatewayChatClient,
chatLog: { addSystem: vi.fn() } as unknown as import("./components/chat-log.js").ChatLog,
tui: { requestRender } as unknown as import("@mariozechner/pi-tui").TUI,
opts: {},