getQuestions

View as MarkdownOpen in Claude

Return all questions in this gather info operation. This is a method on GatherInfo.

Parameters

None.

Returns

GatherQuestion[] — The array of GatherQuestion instances.

Example

import { ContextBuilder, GatherInfo } from '@signalwire/sdk';
const gather = new GatherInfo({ outputKey: 'info' });
gather.addQuestion({ key: 'name', question: 'What is your name?' });
gather.addQuestion({ key: 'email', question: 'What is your email?' });
console.log(gather.getQuestions().length); // 2