Skip to content

Commit f1e8c66

Browse files
test(ui): infer chat control props
1 parent 103aace commit f1e8c66

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/src/pages/chat/chat-controls.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { render } from "lit";
44
import { describe, expect, it, vi } from "vitest";
55
import type { UiSettings } from "../../app/settings.ts";
66
import { t } from "../../i18n/index.ts";
7-
import { renderChatControls, type ChatControlsProps } from "./components/chat-controls.ts";
7+
import { renderChatControls } from "./components/chat-controls.ts";
8+
9+
type ChatControlsProps = Parameters<typeof renderChatControls>[0];
810

911
vi.mock("../../components/icons.ts", () => ({
1012
icons: {},

0 commit comments

Comments
 (0)