Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/question/mod.ts>ObjectOption

A module for deno to make interactive prompts in the terminal
Latest
interface ObjectOption
Re-export
import { type ObjectOption } from "https://deno.land/x/question@0.0.2/mod.ts";

Properties

optional
id: string
value: T

The value that is going to be returned if this item is selected.

optional
dependencies: string | number | (string | number)[]

A label, index, or a list of labels and indexes for the items that this item requires to be selected.

optional
selected: boolean

Set whether this option should be selected by default

optional
display: string

A string that will represent the value instead of the label when exiting the control.

optional
tags: string[]

A list of hidden tags that can also be used when filtering.