Created a simple component for the writing exam
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user