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
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ namespace ts {
256
256
Neither_type_0_nor_type_1_is_assignable_to_the_other: {code: 2352,category: DiagnosticCategory.Error,key: "Neither type '{0}' nor type '{1}' is assignable to the other."},
257
257
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: {code: 2353,category: DiagnosticCategory.Error,key: "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."},
258
258
No_best_common_type_exists_among_return_expressions: {code: 2354,category: DiagnosticCategory.Error,key: "No best common type exists among return expressions."},
259
-
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement: {code: 2355,category: DiagnosticCategory.Error,key: "A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement."},
259
+
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: {code: 2355,category: DiagnosticCategory.Error,key: "A function whose declared type is neither 'void' nor 'any' must return a value."},
260
260
An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: {code: 2356,category: DiagnosticCategory.Error,key: "An arithmetic operand must be of type 'any', 'number' or an enum type."},
261
261
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer: {code: 2357,category: DiagnosticCategory.Error,key: "The operand of an increment or decrement operator must be a variable, property or indexer."},
262
262
The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: {code: 2358,category: DiagnosticCategory.Error,key: "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."},
@@ -277,7 +277,7 @@ namespace ts {
277
277
Duplicate_number_index_signature: {code: 2375,category: DiagnosticCategory.Error,key: "Duplicate number index signature."},
278
278
A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: {code: 2376,category: DiagnosticCategory.Error,key: "A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."},
279
279
Constructors_for_derived_classes_must_contain_a_super_call: {code: 2377,category: DiagnosticCategory.Error,key: "Constructors for derived classes must contain a 'super' call."},
280
-
A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement: {code: 2378,category: DiagnosticCategory.Error,key: "A 'get' accessor must return a value or consist of a single 'throw' statement."},
280
+
A_get_accessor_must_return_a_value: {code: 2378,category: DiagnosticCategory.Error,key: "A 'get' accessor must return a value."},
281
281
Getter_and_setter_accessors_do_not_agree_in_visibility: {code: 2379,category: DiagnosticCategory.Error,key: "Getter and setter accessors do not agree in visibility."},
282
282
get_and_set_accessor_must_have_the_same_type: {code: 2380,category: DiagnosticCategory.Error,key: "'get' and 'set' accessor must have the same type."},
283
283
A_signature_with_an_implementation_cannot_use_a_string_literal_type: {code: 2381,category: DiagnosticCategory.Error,key: "A signature with an implementation cannot use a string literal type."},
@@ -570,6 +570,10 @@ namespace ts {
570
570
Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: {code: 6070,category: DiagnosticCategory.Message,key: "Initializes a TypeScript project and creates a tsconfig.json file."},
571
571
Successfully_created_a_tsconfig_json_file: {code: 6071,category: DiagnosticCategory.Message,key: "Successfully created a tsconfig.json file."},
Report_error_on_unused_labels: {code: 6073,category: DiagnosticCategory.Message,key: "Report error on unused labels."},
574
+
Report_error_when_not_all_code_paths_in_function_return_a_value: {code: 6074,category: DiagnosticCategory.Message,key: "Report error when not all code paths in function return a value."},
575
+
Report_errors_for_fallthrough_cases_in_switch_statement: {code: 6075,category: DiagnosticCategory.Message,key: "Report errors for fallthrough cases in switch statement."},
576
+
Report_errors_on_unreachable_code: {code: 6076,category: DiagnosticCategory.Message,key: "Report errors on unreachable code."},
573
577
Variable_0_implicitly_has_an_1_type: {code: 7005,category: DiagnosticCategory.Error,key: "Variable '{0}' implicitly has an '{1}' type."},
574
578
Parameter_0_implicitly_has_an_1_type: {code: 7006,category: DiagnosticCategory.Error,key: "Parameter '{0}' implicitly has an '{1}' type."},
575
579
Member_0_implicitly_has_an_1_type: {code: 7008,category: DiagnosticCategory.Error,key: "Member '{0}' implicitly has an '{1}' type."},
@@ -587,6 +591,10 @@ namespace ts {
587
591
Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: {code: 7024,category: DiagnosticCategory.Error,key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},
588
592
Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type: {code: 7025,category: DiagnosticCategory.Error,key: "Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."},
589
593
JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: {code: 7026,category: DiagnosticCategory.Error,key: "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists"},
Fallthrough_case_in_switch: {code: 7029,category: DiagnosticCategory.Error,key: "Fallthrough case in switch."},
597
+
Not_all_code_paths_return_a_value: {code: 7030,category: DiagnosticCategory.Error,key: "Not all code paths return a value."},
590
598
You_cannot_rename_this_element: {code: 8000,category: DiagnosticCategory.Error,key: "You cannot rename this element."},
591
599
You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: {code: 8001,category: DiagnosticCategory.Error,key: "You cannot rename elements that are defined in the standard TypeScript library."},
592
600
import_can_only_be_used_in_a_ts_file: {code: 8002,category: DiagnosticCategory.Error,key: "'import ... =' can only be used in a .ts file."},
0 commit comments