hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits
| 1 | import { client } from "./client"; |
| 2 | import type { ExamQuestion, QuestionKind } from "./types"; |
| 3 | |
| 4 | export type PatchExamQuestionBody = { |
| 5 | text?: string | null; |
| 6 | kind?: QuestionKind | null; |
| 7 | points?: number | null; |
| 8 | choices?: string[] | null; |
| 9 | correct?: number | null; |
| 10 | }; |
| 11 | |
| 12 | export function patchExamQuestionById( |
| 13 | examId: string, |
| 14 | questionId: string, |
| 15 | body: PatchExamQuestionBody, |
| 16 | ): Promise<ExamQuestion> { |
| 17 | return client<ExamQuestion>(`/exams/${examId}/questions/${questionId}`, { method: "PATCH", body }); |
| 18 | } |