Skip to content

Commit

Permalink
Remove readonly modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Jun 5, 2024
1 parent 8b7af5a commit ad17e66
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/model/question_set.ts
Original file line number Diff line number Diff line change
@@ -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<Question>
questions: Question[]

readonly id: string

static create({
name,
questions,
}: {
name: string
questions: ReadonlyArray<Question>
}) {
static create({ name, questions }: { name: string; questions: Question[] }) {
const id = uuidv4()
return new QuestionSet({ id, name, questions })
}
Expand All @@ -25,7 +19,7 @@ export class QuestionSet {
}: {
id: string
name: string
questions: ReadonlyArray<Question>
questions: Question[]
}) {
this.id = id
this.name = name
Expand Down

0 comments on commit ad17e66

Please sign in to comment.