Skip to content
Français

DecisionAnswers

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

Readonly mapped answer object preserving every question key and its corresponding primitive-specific answer type.

Complete example and detailed rules.

export type DecisionAnswers<Q extends DecisionQuestions> = {
  readonly [Key in keyof Q]: DecisionAnswer<Q[Key]>;
};