Skip to main content

函数:noul()

机器翻译译自英文(docs.typesafe.ai)本页 22 段已全部译完

文档索引

在以下地址获取完整的文档索引:https://docs.typesafe.ai/llms.txt 使用此文件可以在进一步探索之前发现所有可用页面。

函数:noul()

function noul(instructions?, criteria?): NoulQuestion;

创建一个可选描述肯定或否定结果的“是/否”问题。

参数

instructions?

EntryType = null

问题可以是文本、JSON 对象或数组;默认为 null。

criteria?

| { false?: EntryType; true?: EntryType; } | null

肯定和否定结果的可选描述。

类型字面量

{ false?: EntryType; true?: EntryType; }

肯定和否定结果的可选描述。

false?

EntryType

否定结果的描述。

true?

EntryType

肯定结果的描述。


null

返回值

NoulQuestion