Created a simple component for the writing exam

This commit is contained in:
Tiago Ribeiro
2023-04-06 12:02:07 +01:00
parent 36e6c017b4
commit addef7c674
7 changed files with 118 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
export type Exam = ReadingExam | ListeningExam;
export type Exam = ReadingExam | ListeningExam | WritingExam;
export interface ReadingExam {
text: {
@@ -20,6 +20,20 @@ export interface ListeningExam {
module: "listening";
}
export interface WritingExam {
module: "writing";
text: {
info: string; //* The information about the task, like the amount of time they should spend on it
prompt: string; //* The context given to the user containing what they should write about
wordCounter: WordCounter; //* The minimum or maximum amount of words that should be written
};
}
interface WordCounter {
type: "min" | "max";
limit: number;
}
export type Exercise = FillBlanksExercise | MatchSentencesExercise | MultipleChoiceExercise | WriteBlanksExercise;
export interface FillBlanksExercise {