Fix TypeScript build errors in frontend

- Add explicit type parameter to fetchWrapper call in schedules.ts
- Import QuestionRequest type in SessionDetail.tsx
This commit is contained in:
Chris Scott committed 2026-03-22 18:29:49 -04:00
1 parent f18bcbbf3e
commit 1e8b302de7
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ export async function listRepoSchedules(repoId: number): Promise<{ jobs: Schedul
}
export async function getScheduleCounts(): Promise<Map<number, ScheduleCount>> {
const response = await fetchWrapper(`${API_BASE_URL}/api/schedules/all`)
const jobs = response.jobs as ScheduleJobWithRepo[]
const response = await fetchWrapper<{ jobs: ScheduleJobWithRepo[] }>(`${API_BASE_URL}/api/schedules/all`)
const jobs = response.jobs
const counts = new Map<number, ScheduleCount>()
jobs.forEach((job) => {
+1
View File
@@ -41,6 +41,7 @@ import { RepoSkillsDialog } from "@/components/repo/RepoSkillsDialog";
import { createOpenCodeClient } from "@/api/opencode";
import { useSessionStatus, useSessionStatusForSession } from "@/stores/sessionStatusStore";
import { useQuestions } from "@/contexts/EventContext";
import type { QuestionRequest } from "@/api/types";
import { QuestionPrompt } from "@/components/session/QuestionPrompt";
import { MinimizedQuestionIndicator } from "@/components/session/MinimizedQuestionIndicator";
import { PendingActionsGroup } from "@/components/notifications/PendingActionsGroup";