Skip to main content

Function: choice()

choice<K>(instructions, criteria): object

Defined in: packages/client/src/types.ts:317

A question with options (option → description, or null); the answer is choice with probabilities.

Type Parameters​

K​

K extends string

Parameters​

instructions​

unknown

criteria​

Record<K, unknown>

Returns​

object

criteria​

criteria: Record<K, unknown>

instructions​

instructions: unknown

type​

readonly type: "choice" = "choice"