-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite-env.d.ts
61 lines (52 loc) · 1.09 KB
/
vite-env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/// <reference types="vite/client" />
type Quiz = {
quiz_id: number;
quiz_name: string;
quiz_category: string;
quiz_question: QuizQuestion[];
};
type QuizSubmission = Omit<
Quiz,
"quiz_id" | "quiz_question_id" | "quiz_question_choice_id"
>;
type QuizQuestion = {
quiz_question: string;
quiz_question_id: number;
quiz_question_choice: QuizQuestionChoice[];
};
type QuizQuestionChoice = {
choice_letter: string;
choice_text: string;
is_correct: boolean;
quiz_question_choice_id: number;
};
type Answer = {
[quizId: number]: {
[questionId: number]: string;
};
};
type FlashcardPack = {
flashcard_pack_name: string;
flashcard_pack_id: number;
flashcard_pack_category: string;
flashcard_pack_content: FlashcardContent[];
};
type Flashcard = {
flashcard_pack_id: number;
flashcard_id: number;
term: string;
definition: string;
};
type FlashcardPackSubmission = Omit<
FlashcardPack,
"flashcard_pack_id" | "flashcard_id"
>;
type ContentNavItem = {
category_name: string;
content: [
{
content_name: string;
content_id: number;
}
];
};