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
Line_terminator_not_permitted_before_arrow: {code: 1200,category: DiagnosticCategory.Error,key: "Line terminator not permitted before arrow."},
161
161
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."},
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."},
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."},
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."},
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {code: 2301,category: DiagnosticCategory.Error,key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},
164
167
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2: {code: 2493,category: DiagnosticCategory.Error,key: "Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},
343
346
Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: {code: 2494,category: DiagnosticCategory.Error,key: "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."},
344
-
Type_0_is_not_an_array_type_or_a_string_type: {code: 2461,category: DiagnosticCategory.Error,key: "Type '{0}' is not an array type or a string type."},
347
+
Type_0_is_not_an_array_type_or_a_string_type: {code: 2495,category: DiagnosticCategory.Error,key: "Type '{0}' is not an array type or a string type."},
348
+
The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: {code: 2496,category: DiagnosticCategory.Error,key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression."},
345
349
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
346
350
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: {code: 4002,category: DiagnosticCategory.Error,key: "Type parameter '{0}' of exported class has or is using private name '{1}'."},
347
351
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: {code: 4004,category: DiagnosticCategory.Error,key: "Type parameter '{0}' of exported interface has or is using private name '{1}'."},
@@ -411,6 +415,7 @@ module ts {
411
415
Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: {code: 4077,category: DiagnosticCategory.Error,key: "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."},
412
416
Parameter_0_of_exported_function_has_or_is_using_private_name_1: {code: 4078,category: DiagnosticCategory.Error,key: "Parameter '{0}' of exported function has or is using private name '{1}'."},
413
417
Exported_type_alias_0_has_or_is_using_private_name_1: {code: 4081,category: DiagnosticCategory.Error,key: "Exported type alias '{0}' has or is using private name '{1}'."},
418
+
Default_export_of_the_module_has_or_is_using_private_name_0: {code: 4082,category: DiagnosticCategory.Error,key: "Default export of the module has or is using private name '{0}'."},
414
419
Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher: {code: 4091,category: DiagnosticCategory.Error,key: "Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher."},
415
420
The_current_host_does_not_support_the_0_option: {code: 5001,category: DiagnosticCategory.Error,key: "The current host does not support the '{0}' option."},
416
421
Cannot_find_the_common_subdirectory_path_for_the_input_files: {code: 5009,category: DiagnosticCategory.Error,key: "Cannot find the common subdirectory path for the input files."},
@@ -503,6 +508,5 @@ module ts {
503
508
type_assertion_expressions_can_only_be_used_in_TypeScript: {code: 8016,category: DiagnosticCategory.Error,key: "'type assertion expressions' can only be used in TypeScript."},
504
509
yield_expressions_are_not_currently_supported: {code: 9000,category: DiagnosticCategory.Error,key: "'yield' expressions are not currently supported."},
505
510
Generators_are_not_currently_supported: {code: 9001,category: DiagnosticCategory.Error,key: "Generators are not currently supported."},
506
-
The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: {code: 9002,category: DiagnosticCategory.Error,key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression."},
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -627,6 +627,18 @@
627
627
"category": "Error",
628
628
"code": 1201
629
629
},
630
+
"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
+
"category": "Error",
632
+
"code": 1202
633
+
},
634
+
"Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead.": {
635
+
"category": "Error",
636
+
"code": 1203
637
+
},
638
+
"Cannot compile external modules into amd or commonjs when targeting es6 or higher.": {
639
+
"category": "Error",
640
+
"code": 1204
641
+
},
630
642
631
643
"Duplicate identifier '{0}'.": {
632
644
"category": "Error",
@@ -1358,7 +1370,11 @@
1358
1370
},
1359
1371
"Type '{0}' is not an array type or a string type.": {
1360
1372
"category": "Error",
1361
-
"code": 2461
1373
+
"code": 2495
1374
+
},
1375
+
"The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.": {
1376
+
"category": "Error",
1377
+
"code": 2496
1362
1378
},
1363
1379
1364
1380
"Import declaration '{0}' is using private name '{1}'.": {
@@ -1637,6 +1653,10 @@
1637
1653
"category": "Error",
1638
1654
"code": 4081
1639
1655
},
1656
+
"Default export of the module has or is using private name '{0}'.": {
1657
+
"category": "Error",
1658
+
"code": 4082
1659
+
},
1640
1660
"Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.": {
1641
1661
"category": "Error",
1642
1662
"code": 4091
@@ -2006,9 +2026,5 @@
2006
2026
"Generators are not currently supported.": {
2007
2027
"category": "Error",
2008
2028
"code": 9001
2009
-
},
2010
-
"The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.": {
0 commit comments