Skip to main content
Module

x/cliffy/prompt/checkbox.ts>Checkbox#mapOptions

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
method Checkbox.prototype.mapOptions
import { Checkbox } from "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/checkbox.ts";

Map string option values to options and set option defaults.

Parameters

promptOptions: CheckboxOptions<TValue>
options: Array<
| Extract<TValue, string | number>
| Extract<WidenType<TValue>, string | number>
| CheckboxOption<TValue>
>