forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getExamAttemptQuestions.ts7 lines, 410 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AttemptQuestion, AttemptQuestionResponse } from "../client";
3
4export async function getExamAttemptQuestions(examId: string, signal?: AbortSignal): Promise<AttemptQuestion[]> {
5 const questions = await client<AttemptQuestionResponse[]>(`/exams/${examId}/attempt/questions`, { signal });
6 return questions.map((question) => ({ ...question, exam: examId }));
7}