Typalias: ResultFor<T>
type ResultFor<T> = T extends NoulQuestion ? NoulResponse : T extends ScoreQuestion<infer S> ? ScoreResponse<S> : T extends ChoiceQuestion<infer E> ? ChoiceResponse<E> : never;
Der Antworttyp für eine Frage unter Beibehaltung ihrer criteria-Schlüssel.
Typparameter
T
T extends Question