QuestionAnswer
@forge/monorepo / backend/src / QuestionAnswer
Type Alias: QuestionAnswer
QuestionAnswer =
string| readonlystring[]
Defined in: backend/src/core/content-parts.ts:113
An answer to one question: a single value, several, or free text.
Defined in core because both the persistence port and the HITL service need it, and either importing the
other would be circular — hitl already imports persistence. core is self-contained by rule (R6), which
makes it the only place a shared type like this can live.
string | string[] rather than always an array: a single-select answer being ["a"] forces every reader to
unwrap it, and one of them will forget.