[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

Fix select option type

authored by

kevduc and committed by
Nate Moore
(Dec 21, 2024, 4:52 PM -0600) c19f506b 453d368f

+3 -1
+1
packages/core/src/index.ts
··· 11 11 export { default as TextPrompt } from './prompts/text'; 12 12 export { block, isCancel } from './utils'; 13 13 export { updateSettings } from './utils/settings'; 14 + export type { NonEmptyArray } from './utility-types';
+2 -1
packages/prompts/src/index.ts
··· 2 2 ConfirmPrompt, 3 3 GroupMultiSelectPrompt, 4 4 MultiSelectPrompt, 5 + NonEmptyArray, 5 6 PasswordPrompt, 6 7 SelectKeyPrompt, 7 8 SelectPrompt, ··· 214 215 215 216 export interface SelectOptions<Value> { 216 217 message: string; 217 - options: Option<Value>[]; 218 + options: NonEmptyArray<Option<Value>>; 218 219 initialValue?: Value; 219 220 maxItems?: number; 220 221 }