Skip to content

Commit 30fe6ad

Browse files
authored
fix(55227): useUnknownInCatchVariables sets default value differently to other strict commandline options (#55230)
1 parent defe33a commit 30fe6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
885885
strictFlag: true,
886886
category: Diagnostics.Type_Checking,
887887
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
888-
defaultValueDescription: false,
888+
defaultValueDescription: Diagnostics.false_unless_strict_is_set,
889889
},
890890
{
891891
name: "alwaysStrict",

0 commit comments

Comments
 (0)