You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,6 @@ module ts {
159
159
An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: {code: 1198,category: DiagnosticCategory.Error,key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},
Line_terminator_not_permitted_before_arrow: {code: 1200,category: DiagnosticCategory.Error,key: "Line terminator not permitted before arrow."},
162
-
A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: {code: 1201,category: DiagnosticCategory.Error,key: "A type annotation on an export statement is only allowed in an ambient external module declaration."},
163
162
Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: {code: 1202,category: DiagnosticCategory.Error,key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead."},
164
163
Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: {code: 1203,category: DiagnosticCategory.Error,key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead."},
165
164
Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: {code: 1204,category: DiagnosticCategory.Error,key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher."},
@@ -345,8 +344,8 @@ module ts {
345
344
The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: {code: 2485,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant."},
346
345
The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: {code: 2486,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant."},
347
346
Invalid_left_hand_side_in_for_of_statement: {code: 2487,category: DiagnosticCategory.Error,key: "Invalid left-hand side in 'for...of' statement."},
348
-
The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: {code: 2488,category: DiagnosticCategory.Error,key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator."},
349
-
The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: {code: 2489,category: DiagnosticCategory.Error,key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method."},
347
+
Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: {code: 2488,category: DiagnosticCategory.Error,key: "Type must have a '[Symbol.iterator]()' method that returns an iterator."},
348
+
An_iterator_must_have_a_next_method: {code: 2489,category: DiagnosticCategory.Error,key: "An iterator must have a 'next()' method."},
350
349
The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: {code: 2490,category: DiagnosticCategory.Error,key: "The type returned by the 'next()' method of an iterator must have a 'value' property."},
351
350
The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: {code: 2491,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -623,10 +623,6 @@
623
623
"category": "Error",
624
624
"code": 1200
625
625
},
626
-
"A type annotation on an export statement is only allowed in an ambient external module declaration.": {
627
-
"category": "Error",
628
-
"code": 1201
629
-
},
630
626
"Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead.": {
631
627
"category": "Error",
632
628
"code": 1202
@@ -1367,11 +1363,11 @@
1367
1363
"category": "Error",
1368
1364
"code": 2487
1369
1365
},
1370
-
"The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator.": {
1366
+
"Type must have a '[Symbol.iterator]()' method that returns an iterator.": {
1371
1367
"category": "Error",
1372
1368
"code": 2488
1373
1369
},
1374
-
"The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method.": {
0 commit comments