UNPKG

pedago-angular-quiz

Version:

A pedago quiz component for Angular projects

44 lines (43 loc) 990 B
export interface IQuestion { question: string; options: IOption[]; explanation: string; skill: string; } export interface IOption { option: string; is_correct: boolean; } export interface IData { questions: IQuestion[]; } export interface IResponse { questionID: string; answer: string | string[]; correctedAnswer: string | string[]; is_correct: boolean; is_partially_correct?: boolean; } export interface IResult { client?: string; userId?: string; response: IResponse[]; } export declare class Result implements IResult { client?: string; userId?: string; response: IResponse[]; constructor(response: IResponse[], client?: string, userId?: string); } export interface ITheme { primaryColor?: string; secondaryColor?: string; hasheader?: boolean; headerBackColor?: string; headerImage?: string; } export interface IMetadata { title?: string; showTitle?: boolean; theme?: ITheme; }