...css shenanigans: daisyui may have had a breaking change at 5.3.0, it wrecks the ui here, as tailwind forces its own styles over daisyuis overrides, for now staying at ~5.2.5, for good measure also @nuxtjs/tailwindcss stays at ^6.13.2 (6.13.2 in pnpmlock) - this may be, because (but i'm not sure) @nuxtjs/tailwind is tailwind3 and not tailwind4? Nuxt3=>4 migration: also changed nuxtimage settings, as the docs have been fixed, path changes, etc
27 lines
624 B
TypeScript
27 lines
624 B
TypeScript
export interface BasicQuestion {
|
|
id: number | null;
|
|
correct_answer: string | null;
|
|
media_url: string | null;
|
|
weight: number | null;
|
|
text: string | null;
|
|
}
|
|
|
|
export interface AdvancedQuestion extends BasicQuestion {
|
|
answer_a: string | null;
|
|
answer_b: string | null;
|
|
answer_c: string | null;
|
|
}
|
|
|
|
export type Question = BasicQuestion | AdvancedQuestion | null | undefined;
|
|
|
|
export interface ResultType {
|
|
question: Question;
|
|
chosen_answer: string;
|
|
correct_answer: string | null;
|
|
chosen_is_correct: boolean | undefined;
|
|
}
|
|
|
|
export interface ResultEndType {
|
|
basic: ResultType[];
|
|
advanced: ResultType[];
|
|
}
|