TS TypeSafe 文档中文版 原文 ↗

接口:ChoiceQuestion<T>

一种在具名备选项之间进行选择的问题。

类型参数

T

T extends ChoiceCriteria = ChoiceCriteria

属性

criteria

typescript
criteria: T;
 

对可用结果的描述。


instructions?

typescript
optional instructions?: EntryType;
 

以文本、JSON 对象或数组形式给出的问题;可选或为 null。


type

typescript
type: "choice";