Last active
April 7, 2021 21:13
-
-
Save robinheinze/68e403aec8fa8136c313f612ac3c04b7 to your computer and use it in GitHub Desktop.
Question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const QuestionModel = types | |
.model("Question") | |
.props({ | |
id: types.identifier, | |
category: types.maybe(types.string), | |
type: types.enumeration(["multiple", "boolean"]), | |
difficulty: types.enumeration(["easy", "medium", "hard"]), | |
question: types.maybe(types.string), | |
correctAnswer: types.maybe(types.string), | |
incorrectAnswers: types.optional(types.array(types.string), []), | |
}) | |
.views(self => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars | |
.actions(self => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment