add null to quizconfig/image types
This commit is contained in:
parent
2c3500d2c6
commit
7824fafc51
@ -29,8 +29,8 @@ export interface QuizQuestionImages extends QuizQuestionBase {
|
|||||||
variants: QuestionVariant[];
|
variants: QuestionVariant[];
|
||||||
hint: QuestionHint;
|
hint: QuestionHint;
|
||||||
rule: QuestionBranchingRule;
|
rule: QuestionBranchingRule;
|
||||||
back: string;
|
back: string | null;
|
||||||
originalBack: string;
|
originalBack: string | null;
|
||||||
autofill: boolean;
|
autofill: boolean;
|
||||||
largeCheck: boolean;
|
largeCheck: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -30,6 +30,7 @@ export type QuizResultsType = true | null;
|
|||||||
export interface QuizConfig {
|
export interface QuizConfig {
|
||||||
type: QuizType;
|
type: QuizType;
|
||||||
logo: string | null;
|
logo: string | null;
|
||||||
|
originalLogo: string | null;
|
||||||
noStartPage: boolean;
|
noStartPage: boolean;
|
||||||
startpageType: QuizStartpageType;
|
startpageType: QuizStartpageType;
|
||||||
results: QuizResultsType;
|
results: QuizResultsType;
|
||||||
@ -41,7 +42,9 @@ export interface QuizConfig {
|
|||||||
background: {
|
background: {
|
||||||
type: null | "image" | "video";
|
type: null | "image" | "video";
|
||||||
desktop: string | null;
|
desktop: string | null;
|
||||||
|
originalDesktop: string | null;
|
||||||
mobile: string | null;
|
mobile: string | null;
|
||||||
|
originalMobile: string | null;
|
||||||
video: string | null;
|
video: string | null;
|
||||||
cycle: boolean;
|
cycle: boolean;
|
||||||
};
|
};
|
||||||
@ -59,6 +62,7 @@ export interface QuizConfig {
|
|||||||
export const defaultQuizConfig: QuizConfig = {
|
export const defaultQuizConfig: QuizConfig = {
|
||||||
type: null,
|
type: null,
|
||||||
logo: null,
|
logo: null,
|
||||||
|
originalLogo: null,
|
||||||
noStartPage: false,
|
noStartPage: false,
|
||||||
startpageType: null,
|
startpageType: null,
|
||||||
results: null,
|
results: null,
|
||||||
@ -70,7 +74,9 @@ export const defaultQuizConfig: QuizConfig = {
|
|||||||
background: {
|
background: {
|
||||||
type: null,
|
type: null,
|
||||||
desktop: null,
|
desktop: null,
|
||||||
|
originalDesktop: null,
|
||||||
mobile: null,
|
mobile: null,
|
||||||
|
originalMobile: null,
|
||||||
video: null,
|
video: null,
|
||||||
cycle: false,
|
cycle: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user