generated from muhtadeetaron/nextjs-template
27 lines
554 B
TypeScript
27 lines
554 B
TypeScript
export interface Metadata {
|
|
attempt_id: string;
|
|
test_id: string;
|
|
type: string;
|
|
total_possible_score: number;
|
|
deduction?: string;
|
|
num_questions: number;
|
|
name: string;
|
|
start_time: string; // keep ISO string for consistency
|
|
time_limit_minutes?: number;
|
|
}
|
|
|
|
export type Question = {
|
|
question_id: string;
|
|
question: string;
|
|
options: string[];
|
|
type: "Single" | "Multiple";
|
|
};
|
|
|
|
export interface Test {
|
|
metadata: Metadata;
|
|
questions: Question[];
|
|
}
|
|
|
|
export type Answer = number | null;
|
|
export type AnswersMap = Record<string, Answer>;
|