Skip to content

Commit e64bc2c

Browse files
committed
chore: add changeset
1 parent db47694 commit e64bc2c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.changeset/little-horses-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clack/prompts': patch
3+
---
4+
5+
feat: add `disabled` option to `select` and `multiselect` prompts

packages/prompts/src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,7 @@ export interface SelectOptions<Value> {
267267
}
268268

269269
export const select = <Value>(opts: SelectOptions<Value>) => {
270-
const opt = (
271-
option: Option<Value>,
272-
state: 'inactive' | 'active' | 'selected' | 'cancelled'
273-
) => {
270+
const opt = (option: Option<Value>, state: 'inactive' | 'active' | 'selected' | 'cancelled') => {
274271
const label = option.label ?? String(option.value);
275272
switch (state) {
276273
case 'selected':

0 commit comments

Comments
 (0)