Skip to content
Français

RoutingQuestion

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

Keys of decision questions whose primitive is choice; score and noul questions cannot drive model routing.

Complete example and detailed rules.

export type RoutingQuestion<Q extends DecisionQuestions> = {
  [Key in keyof Q]: Extract<Q[Key], ChoiceQuestion> extends never ? never : Key;
}[keyof Q];