add experimental question HttpApi slice (#22357)

This commit is contained in:
Kit Langton
2026-04-14 15:43:49 -04:00
committed by GitHub
parent 8c42d391f5
commit f2525a63c9
10 changed files with 547 additions and 81 deletions

View File

@@ -2195,7 +2195,7 @@ function Question(props: ToolProps<typeof QuestionTool>) {
const { theme } = useTheme()
const count = createMemo(() => props.input.questions?.length ?? 0)
function format(answer?: string[]) {
function format(answer?: ReadonlyArray<string>) {
if (!answer?.length) return "(no answer)"
return answer.join(", ")
}