(state: QuestionBodyState, requestID: string)
| 44 | } |
| 45 | |
| 46 | export function questionSync(state: QuestionBodyState, requestID: string): QuestionBodyState { |
| 47 | if (state.requestID === requestID) { |
| 48 | return state |
| 49 | } |
| 50 | |
| 51 | return createQuestionBodyState(requestID) |
| 52 | } |
| 53 | |
| 54 | export function questionSingle(request: QuestionRequest): boolean { |
| 55 | return request.questions.length === 1 && request.questions[0]?.multiple !== true |
no test coverage detected