Skip to content

Commit 262b8a2

Browse files
committed
Improve titleColors type
1 parent ee6ebec commit 262b8a2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tired-trams-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@gud/cli-menu": patch
3+
---
4+
5+
Improved `titleColors` type.

packages/cli-menu/src/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface MenuOptions {
1212
* @default
1313
* ['#2EFFAF', '#0FC2C2']
1414
*/
15-
titleColors?: `#${string}`[];
15+
titleColors?: [`#${string}`, `#${string}`];
1616

1717
/**
1818
* The message to show when prompting the user to select a command.

0 commit comments

Comments
 (0)