diff --git a/src/v1/question.ts b/src/v1/question.ts index 919c9e4dfce0a773aa4ba0ce6deeddbc216c6c58..d6e6a9af1790ca6f0c5f63966e36f8ea1bc48d07 100644 --- a/src/v1/question.ts +++ b/src/v1/question.ts @@ -3,7 +3,7 @@ import {html} from './types'; export interface Question { type: string; score: number; - statement: string; + statement: html; label: string; responses: Array<Response>; correctResponse: string|Array<string>|Array<{label: string, values: string[]}>; @@ -12,12 +12,12 @@ export interface Question { * The explanation of the correction of the question * @deprecated use feedback property */ - explanation: html; + explanation?: html; /** * The global feedback of the question */ - feedback: html; + feedback?: html; } export interface DragAndDropquestion extends Question{ diff --git a/src/v2/question.ts b/src/v2/question.ts index 8363685ddcb99b718e8a19ceef8b94e1e25068f6..1057bae318b723b569b123c7678aa73541dc79d5 100644 --- a/src/v2/question.ts +++ b/src/v2/question.ts @@ -18,7 +18,7 @@ export interface Question { /** * The statement of the question */ - statement: string; + statement: html; /** * The label of the question @@ -39,12 +39,12 @@ export interface Question { * The explanation of the correction of the question * @deprecated use feedback property */ - explanation: html; + explanation?: html; /** * The global feedback of the question */ - feedback: html; + feedback?: html; } /**