From 30fe6ada02c05bb7fe4dfe22d6f0aaf9e283e0ab Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 2 Aug 2023 21:32:46 +0300 Subject: [PATCH] fix(55227): useUnknownInCatchVariables sets default value differently to other strict commandline options (#55230) --- src/compiler/commandLineParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 1443d98edb3..5fcd8525a97 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -885,7 +885,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ strictFlag: true, category: Diagnostics.Type_Checking, description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: false, + defaultValueDescription: Diagnostics.false_unless_strict_is_set, }, { name: "alwaysStrict",