[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.

fixup! Fix SelectPrompt options type

authored by

kevduc and committed by
Nate Moore
(Dec 21, 2024, 4:53 PM -0600) d6da149e c19f506b

+2 -2
+2 -2
packages/core/src/prompts/select.ts
··· 2 2 import Prompt, { type PromptOptions } from './prompt'; 3 3 4 4 interface SelectOptions<T extends { value: any }> extends PromptOptions<SelectPrompt<T>> { 5 - options: NonEmptyArray<T>; 5 + options: SelectPrompt<T>['options']; 6 6 initialValue?: T['value']; 7 7 } 8 8 export default class SelectPrompt<T extends { value: any }> extends Prompt { 9 - options: SelectOptions<T>['options']; 9 + options: NonEmptyArray<SelectOptions<T>['options']>; 10 10 cursor = 0; 11 11 12 12 private get _value() {