Skip to content
Français

WorkflowInputQuestion

import type { WorkflowInputQuestion } from "@elie-laloum/outpost";
  • questionRequired
    string
    Nonempty human-readable question to display to the respondent.
  • choicesOptional
    readonly string[] | undefined
    Nonempty list of unique answer choices.
  • allowFreeTextOptional
    boolean | undefined
    Whether answers outside choices are accepted; omitted means true. False requires choices.
export interface WorkflowInputQuestion {
  readonly question: string;
  readonly choices?: readonly string[];
  readonly allowFreeText?: boolean;
}