Skip to content

AnswerTo

type AnswerTo<Q> = Q extends ChoiceQuestion<infer Option> ? ChoiceAnswer<Option> : Q extends NoulQuestion ? NoulAnswer : Q extends ScoreQuestion ? ScoreAnswer : never;

Defined in: core/src/decisions.ts:81

The answer type a question gets back. A choice’s options carry through.

Type Parameter
Q