diff --git a/src/model/question_set.ts b/src/model/question_set.ts index f9464dd..f977e1c 100644 --- a/src/model/question_set.ts +++ b/src/model/question_set.ts @@ -1,19 +1,13 @@ import { MultipleChoiceBuilder, MultipleChoice } from './mc' import { v4 as uuidv4 } from 'uuid' export class QuestionSet { - readonly name: string + name: string - readonly questions: ReadonlyArray + questions: Question[] readonly id: string - static create({ - name, - questions, - }: { - name: string - questions: ReadonlyArray - }) { + static create({ name, questions }: { name: string; questions: Question[] }) { const id = uuidv4() return new QuestionSet({ id, name, questions }) } @@ -25,7 +19,7 @@ export class QuestionSet { }: { id: string name: string - questions: ReadonlyArray + questions: Question[] }) { this.id = id this.name = name