File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ export { default as SelectPrompt } from './prompts/select';
88export { default as SelectKeyPrompt } from './prompts/select-key' ;
99export { default as TextPrompt } from './prompts/text' ;
1010export { block } from './utils' ;
11+ export type { NonEmptyArray } from './utility-types' ;
Original file line number Diff line number Diff line change 44 GroupMultiSelectPrompt ,
55 isCancel ,
66 MultiSelectPrompt ,
7+ NonEmptyArray ,
78 PasswordPrompt ,
89 SelectKeyPrompt ,
910 SelectPrompt ,
@@ -176,7 +177,7 @@ type Option<Value> = Value extends Primitive
176177
177178export interface SelectOptions < Value > {
178179 message : string ;
179- options : Option < Value > [ ] ;
180+ options : NonEmptyArray < Option < Value > > ;
180181 initialValue ?: Value ;
181182 maxItems ?: number ;
182183}
You can’t perform that action at this time.
0 commit comments