Skip to main content
Deno 2 is finally here 🎉️
Learn more
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
Go to Latest
method Checkbox.prototype.mapOptions
import { Checkbox } from "https://deno.land/x/cliffy@v1.0.0-rc.1/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>
>