Skip to content

Commit f9a3d85

Browse files
author
Orta Therox
authored
Fix the default text for --useDefineForClassFields (microsoft#45513)
* Fix the default text for --useDefineForClassFields * Update with feedback
1 parent 6b08668 commit f9a3d85

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/compiler/commandLineParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ namespace ts {
11661166
affectsEmit: true,
11671167
category: Diagnostics.Language_and_Environment,
11681168
description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,
1169-
defaultValueDescription: "false"
1169+
defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext
11701170
},
11711171
{
11721172
name: "keyofStringsOnly",

src/compiler/diagnosticMessages.json

+5
Original file line numberDiff line numberDiff line change
@@ -5668,6 +5668,11 @@
56685668
"category": "Message",
56695669
"code": 6929
56705670
},
5671+
"`true` for ES2022 and above, including ESNext.": {
5672+
"category": "Message",
5673+
"code": 6930
5674+
},
5675+
56715676

56725677
"Variable '{0}' implicitly has an '{1}' type.": {
56735678
"category": "Error",

0 commit comments

Comments
 (0)