export type Questions = {
data: Datum[];
error: null;
}
export type Datum = {
question_id: number;
parent_question_id?: number | null;
title: string;
sub_title?: null;
description?: null;
body?: string;
answer_type: AnswerType;
options: Option[];
}
export type AnswerType = "multiple_choice";
export type Option = {
option_id: number;
option_text: string;
}
export type Questions = {
data: Datum[];
error: null;
}
export type Datum = {
question_id: number;
parent_question_id?: number | null;
title: string;
sub_title?: null;
description?: null;
body?: string;
answer_type: AnswerType;
options: Option[];
}
export type AnswerType = "multiple_choice";
export type Option = {
option_id: number;
option_text: string;
}