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
Type_predicate_0_is_not_assignable_to_1: {code: 1226,category: DiagnosticCategory.Error,key: "Type predicate '{0}' is not assignable to '{1}'."},
185
185
Parameter_0_is_not_in_the_same_position_as_parameter_1: {code: 1227,category: DiagnosticCategory.Error,key: "Parameter '{0}' is not in the same position as parameter '{1}'."},
186
-
Type_predicates_are_only_allowed_in_return_type_position_for_arrow_functions_function_expressions_function_declarations_function_types_and_method_declarations: {code: 1228,category: DiagnosticCategory.Error,key: "Type predicates are only allowed in return type position for arrow functions, function expressions, function declarations, function types and method declarations."},
Type_predicates_are_only_allowed_in_return_type_position_for_functions_and_methods: {code: 1228,category: DiagnosticCategory.Error,key: "Type predicates are only allowed in return type position for functions and methods."},
Type_predicate_cannot_reference_element_0_in_a_binding_pattern: {code: 1230,category: DiagnosticCategory.Error,key: "Type predicate cannot reference element '{0}' in a binding pattern."},
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."},
190
191
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+6-2
Original file line number
Diff line number
Diff line change
@@ -719,14 +719,18 @@
719
719
"category": "Error",
720
720
"code": 1227
721
721
},
722
-
"Type predicates are only allowed in return type position for arrow functions, function expressions, function declarations, function types and method declarations.": {
722
+
"Type predicates are only allowed in return type position for functionsand methods.": {
723
723
"category": "Error",
724
724
"code": 1228
725
725
},
726
-
"Type predicate cannot reference a spread parameter.": {
726
+
"Type predicate cannot reference a rest parameter.": {
727
727
"category": "Error",
728
728
"code": 1229
729
729
},
730
+
"Type predicate cannot reference element '{0}' in a binding pattern.": {
0 commit comments