import { UserPreview } from '../../Previews/UserPreview'; import { UserAnswer } from './UserAnswer'; import { MatchingQuestionAnswer } from '../../Resource/Quiz/MatchingQuestionAnswer'; export type UserQuestionData = { id: string; index?: number; areAnswersCorrect?: boolean; userAnswers?: UserAnswer[]; questionType?: string; freeTextAnswer?: string; matchingQuestionAnswers?: MatchingQuestionAnswer[]; grade?: number; answerNotes?: AnswerNote[]; }; export type AnswerNote = { id: string; note: string; commentText?: string; startIndex: number; endIndex: number; type: "addition" | "deletion" | "comment" | "generalNote"; creatingUser?: Partial; timeStamp?: Date; };