Viktorani API - v0.0.8
    Preparing search index...

    Interface Question

    A single trivia question in the question bank.

    • type === 'multiple_choice': options holds exactly 4 strings; answer is one of them.
    • type === 'true_false': options is ['True', 'False']; answer is one of them.
    • type === 'open_ended': options is empty; answer is the canonical correct answer.
    interface Question {
        answer: string;
        createdAt: number;
        description: string;
        difficulty: string | null;
        id: string;
        media: string | null;
        mediaType: "image" | "audio" | "video" | null;
        options: string[];
        tags: string[];
        title: string;
        type: QuestionType;
        updatedAt: number;
    }
    Index

    Properties

    answer: string

    The canonical correct answer string.

    createdAt: number
    description: string

    Optional markdown body shown below the question title.

    difficulty: string | null

    ID of the associated DifficultyLevel, or null if unset.

    id: string
    media: string | null

    Base64-encoded media data or a remote URL, or null if none.

    mediaType: "image" | "audio" | "video" | null
    options: string[]

    Possible answers shown to players (MC and T/F only).

    tags: string[]

    Array of Tag IDs.

    title: string
    updatedAt: number