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

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