From f9a3d85b00cd3c36130b253ec5381cf3b0265ed2 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Wed, 1 Sep 2021 14:10:47 +0000 Subject: [PATCH] Fix the default text for --useDefineForClassFields (#45513) * Fix the default text for --useDefineForClassFields * Update with feedback --- src/compiler/commandLineParser.ts | 2 +- src/compiler/diagnosticMessages.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 8ea829eaad5..05d80d97ccc 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1166,7 +1166,7 @@ namespace ts { affectsEmit: true, category: Diagnostics.Language_and_Environment, description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields, - defaultValueDescription: "false" + defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext }, { name: "keyofStringsOnly", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index f133ec5a0a8..d1a03c6a31e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5668,6 +5668,11 @@ "category": "Message", "code": 6929 }, + "`true` for ES2022 and above, including ESNext.": { + "category": "Message", + "code": 6930 + }, + "Variable '{0}' implicitly has an '{1}' type.": { "category": "Error",