Skip to content

Commit

Permalink
Fix promptForBoolean to display the default initial value capitalized (
Browse files Browse the repository at this point in the history
…#1829)

* Fix promptForBoolean to display the default initial value capitalized

* Fix lint
  • Loading branch information
rebeccahum authored May 9, 2024
1 parent 36ec126 commit 3845404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/dev-environment/dev-environment-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ export function promptForBoolean( message: string, initial: boolean ): Promise<
if ( isStdinTTY ) {
const confirm = new Confirm( {
message,
initial: initial.toString(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-assignment
initial: initial as any, // TS definition is wrong, so we need to bypass it to show the correct hint.
} );

return confirm.run();
Expand Down

0 comments on commit 3845404

Please sign in to comment.