Skip to main content
Create a yes/no question with optional descriptions for either outcome.

Call Signature

Parameters

instructions

NonNullable<EntryType>

criteria?

| { false?: EntryType; true?: EntryType; } | null
Type Literal
{ false?: EntryType; true?: EntryType; }
false?
EntryType Description of the no outcome.
true?
EntryType Description of the yes outcome.
null

Returns

NoulQuestion

Call Signature

Parameters

instructions

EntryType | undefined

criteria

| { false?: EntryType; true: NonNullable<EntryType>; } | { false: NonNullable<EntryType>; true?: EntryType; }

Returns

NoulQuestion

Param

instructions The question as text, a JSON object or array; null or omitted requires criteria to describe at least one outcome.

Param

criteria Descriptions of the yes and no outcomes.