接口接口:NoulQuestion

一个是/否问题,可为两种结果分别提供可选的描述。

属性

criteria?

ts
optional criteria?: 
  | {
  false?: EntryType;
  true?: EntryType;
}
  | null;

对“是”和“否”两种结果的可选描述。

联合类型成员

类型字面量
ts
{
  false?: EntryType;
  true?: EntryType;
}
false?
ts
optional false?: EntryType;

对“否”结果的描述。

true?
ts
optional true?: EntryType;

对“是”结果的描述。


null


instructions?

ts
optional instructions?: EntryType;

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


type

ts
type: "noul";