From 3845404a85f88e909b8f7f62af93e5cdfcafb872 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Thu, 9 May 2024 07:43:30 -0700 Subject: [PATCH] Fix promptForBoolean to display the default initial value capitalized (#1829) * Fix promptForBoolean to display the default initial value capitalized * Fix lint --- src/lib/dev-environment/dev-environment-cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/dev-environment/dev-environment-cli.ts b/src/lib/dev-environment/dev-environment-cli.ts index ea8393f7c..4dab86e87 100644 --- a/src/lib/dev-environment/dev-environment-cli.ts +++ b/src/lib/dev-environment/dev-environment-cli.ts @@ -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();