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

Interface MultiSelectOptions

packages/prompts/src/multi-select.ts:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21];
22
23export interface MultiSelectOptions<Value> extends CommonOptions {
24 message: string;
25 options: Option<Value>[];
26 initialValues?: Value[];
27 maxItems?: number;
28 required?: boolean;
29 cursorAt?: Value;
30 /**
31 * Show keyboard instructions below the option list.
32 * @default true
33 */
34 showInstructions?: boolean;
35}
36const computeLabel = (label: string, format: (text: string) => string) => {
37 return label
38 .split('\n')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected