Skip to content
Français

ChoiceQuestion

import type { ChoiceQuestion } from "@elie-laloum/outpost";
  • typeRequired
    "choice"
    choice discriminator. Choose one of 2 to 255 named options.
  • instructionsRequired
    string
    Nonempty natural-language instructions for this question.
  • criteriaRequired
    Readonly<Record<string, string>>
    Named options with nonempty descriptions; keys become the allowed choice literals.
export interface ChoiceQuestion {
  readonly type: "choice";
  readonly instructions: string;
  readonly criteria: Readonly<Record<string, string>>;
}