QuizFlash / src /types /quiz.ts
Shih-hungg's picture
Fix type errors
c7d096e
raw
history blame contribute delete
486 Bytes
export interface QuestionType {
id: string;
name: string;
icon: string;
description: string;
}
export interface QuestionParameters {
[key: string]: string | number | boolean | string[];
}
export interface GeneratedQuestion {
id: string;
type: string;
stem: string;
content: {
Question: string;
Options: {
A: string;
B: string;
C: string;
D: string;
};
Answer: 'A' | 'B' | 'C' | 'D';
};
points: number;
createdAt: Date;
}