MCPcopy Create free account
hub / github.com/bombshell-dev/clack / SelectKeyOptions

Interface SelectKeyOptions

packages/prompts/src/select-key.ts:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import type { Option } from './select.js';
5
6export interface SelectKeyOptions<Value extends string> extends CommonOptions {
7 message: string;
8 options: Option<Value>[];
9 initialValue?: Value;
10 caseSensitive?: boolean;
11}
12
13export const selectKey = <Value extends string>(opts: SelectKeyOptions<Value>) => {
14 const opt = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected