Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace questionFormats

Index

Type Aliases

Variables

Type Aliases

QuestionFormat: { fileExtension: string; fileType: string; export: any; import: any }

Type declaration

  • fileExtension: string

    file extension for exporting

  • fileType: string

    file MIME type

  • export:function
    • export(questions: { choices: ({ answer: string; isCorrect: boolean; id?: string | undefined; })[]; id: undefined | string; question: string }[]): string
    • Export questions to plain text

      Parameters

      • questions: { choices: ({ answer: string; isCorrect: boolean; id?: string | undefined; })[]; id: undefined | string; question: string }[]

      Returns string

  • import:function
    • import(text: string): { choices: ({ answer: string; isCorrect: boolean; id?: string | undefined; })[]; id: undefined | string; question: string }[]
    • Import questions from plain text

      Parameters

      • text: string

      Returns { choices: ({ answer: string; isCorrect: boolean; id?: string | undefined; })[]; id: undefined | string; question: string }[]

Variables

gift: QuestionFormat = ...

Moodle GIFT format

json: QuestionFormat = ...

JSON encoded format of Question

qal: QuestionFormat = ...

QuestionAnswerLine format

Generated using TypeDoc