Aller au contenu
English

WorkflowInputQuestion

import type { WorkflowInputQuestion } from "@elie-laloum/outpost";
  • questionRequis
    string
    Question lisible et non vide à afficher au répondant.
  • choicesOptionnel
    readonly string[] | undefined
    Liste non vide de choix de réponse uniques.
  • allowFreeTextOptionnel
    boolean | undefined
    Autorise les réponses hors des choix ; true si omis. false exige des choix.
export interface WorkflowInputQuestion {
  readonly question: string;
  readonly choices?: readonly string[];
  readonly allowFreeText?: boolean;
}