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';
8
8
export { default as SelectKeyPrompt } from './prompts/select-key' ;
9
9
export { default as TextPrompt } from './prompts/text' ;
10
10
export { block } from './utils' ;
11
+ export type { NonEmptyArray } from './utility-types' ;
Original file line number Diff line number Diff line change 4
4
GroupMultiSelectPrompt ,
5
5
isCancel ,
6
6
MultiSelectPrompt ,
7
+ NonEmptyArray ,
7
8
PasswordPrompt ,
8
9
SelectKeyPrompt ,
9
10
SelectPrompt ,
@@ -176,7 +177,7 @@ type Option<Value> = Value extends Primitive
176
177
177
178
export interface SelectOptions < Value > {
178
179
message : string ;
179
- options : Option < Value > [ ] ;
180
+ options : NonEmptyArray < Option < Value > > ;
180
181
initialValue ?: Value ;
181
182
maxItems ?: number ;
182
183
}
You can’t perform that action at this time.
0 commit comments