Created a prototype for one exercise of the reading module
This commit is contained in:
23
src/interfaces/exam.ts
Normal file
23
src/interfaces/exam.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export type Type = "fillBlanks" | "matchingSentences";
|
||||
|
||||
export interface ReadingExam {
|
||||
text: {
|
||||
title: string;
|
||||
content: string;
|
||||
};
|
||||
exercises: Exercise[];
|
||||
}
|
||||
|
||||
type Exercise = FillBlanksExercise;
|
||||
|
||||
export interface FillBlanksExercise {
|
||||
prompt: string; // *EXAMPLE: "Complete the summary below. Click a blank to select the corresponding word for it."
|
||||
type: "fillBlanks";
|
||||
words: string[]; // *EXAMPLE: ["preserve", "unaware"]
|
||||
text: string; // *EXAMPLE: "They tried to {{1}} burning"
|
||||
allowRepetition: boolean;
|
||||
solutions: {
|
||||
id: string; // *EXAMPLE: "1"
|
||||
solution: string; // *EXAMPLE: "preserve"
|
||||
}[];
|
||||
}
|
||||
Reference in New Issue
Block a user