Skip to content
Français

DecisionQuestion

import type { DecisionQuestion } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • typeRequired
    "choice" | "score" | "noul"
    Question primitive: choice, score or noul.
  • instructionsRequired
    string
    Nonempty instructions for the selected question primitive.
  • criteriaVariant-dependent
    Readonly<Record<string, string>> | readonly string[] | { readonly true: string; readonly false: string; } | undefined
    For choice, named descriptions; for score, ordered level descriptions; for noul, optional true/false descriptions.
export type DecisionQuestion = ChoiceQuestion | ScoreQuestion | NoulQuestion;