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
An_object_member_cannot_be_declared_optional: {code: 1162,category: DiagnosticCategory.Error,key: "An object member cannot be declared optional."},
123
-
yield_expression_must_be_contained_within_a_generator_declaration: {code: 1163,category: DiagnosticCategory.Error,key: "'yield' expression must be contained_within a generator declaration."},
123
+
A_yield_expression_is_only_allowed_in_a_generator_body: {code: 1163,category: DiagnosticCategory.Error,key: "A 'yield' expression is only allowed in a generator body."},
124
124
Computed_property_names_are_not_allowed_in_enums: {code: 1164,category: DiagnosticCategory.Error,key: "Computed property names are not allowed in enums."},
125
125
A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol: {code: 1165,category: DiagnosticCategory.Error,key: "A computed property name in an ambient context must directly refer to a built-in symbol."},
126
126
A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol: {code: 1166,category: DiagnosticCategory.Error,key: "A computed property name in a class property declaration must directly refer to a built-in symbol."},
@@ -174,6 +174,9 @@ module ts {
174
174
Type_expected_0_is_a_reserved_word_in_strict_mode: {code: 1215,category: DiagnosticCategory.Error,key: "Type expected. '{0}' is a reserved word in strict mode"},
175
175
Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: {code: 1216,category: DiagnosticCategory.Error,key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."},
176
176
Export_assignment_is_not_supported_when_module_flag_is_system: {code: 1218,category: DiagnosticCategory.Error,key: "Export assignment is not supported when '--module' flag is 'system'."},
177
+
Generators_are_only_available_when_targeting_ECMAScript_6_or_higher: {code: 1219,category: DiagnosticCategory.Error,key: "Generators are only available when targeting ECMAScript 6 or higher."},
178
+
Generators_are_not_allowed_in_an_ambient_context: {code: 1220,category: DiagnosticCategory.Error,key: "Generators are not allowed in an ambient context."},
179
+
An_overload_signature_cannot_be_declared_as_a_generator: {code: 1221,category: DiagnosticCategory.Error,key: "An overload signature cannot be declared as a generator."},
177
180
_0_tag_already_specified: {code: 1219,category: DiagnosticCategory.Error,key: "'{0}' tag already specified."},
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."},
@@ -366,6 +369,8 @@ module ts {
366
369
A_rest_element_cannot_contain_a_binding_pattern: {code: 2501,category: DiagnosticCategory.Error,key: "A rest element cannot contain a binding pattern."},
367
370
_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: {code: 2502,category: DiagnosticCategory.Error,key: "'{0}' is referenced directly or indirectly in its own type annotation."},
No_best_common_type_exists_among_yield_expressions: {code: 2504,category: DiagnosticCategory.Error,key: "No best common type exists among yield expressions."},
373
+
A_generator_cannot_have_a_void_type_annotation: {code: 2505,category: DiagnosticCategory.Error,key: "A generator cannot have a 'void' type annotation."},
369
374
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
370
375
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}'."},
371
376
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}'."},
@@ -523,6 +528,7 @@ module ts {
523
528
_0_implicitly_has_type_any_because_it_is_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: {code: 7022,category: DiagnosticCategory.Error,key: "'{0}' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer."},
524
529
_0_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: 7023,category: DiagnosticCategory.Error,key: "'{0}' 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."},
525
530
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."},
531
+
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."},
526
532
You_cannot_rename_this_element: {code: 8000,category: DiagnosticCategory.Error,key: "You cannot rename this element."},
527
533
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."},
528
534
import_can_only_be_used_in_a_ts_file: {code: 8002,category: DiagnosticCategory.Error,key: "'import ... =' can only be used in a .ts file."},
@@ -540,8 +546,6 @@ module ts {
540
546
enum_declarations_can_only_be_used_in_a_ts_file: {code: 8015,category: DiagnosticCategory.Error,key: "'enum declarations' can only be used in a .ts file."},
541
547
type_assertion_expressions_can_only_be_used_in_a_ts_file: {code: 8016,category: DiagnosticCategory.Error,key: "'type assertion expressions' can only be used in a .ts file."},
542
548
decorators_can_only_be_used_in_a_ts_file: {code: 8017,category: DiagnosticCategory.Error,key: "'decorators' can only be used in a .ts file."},
543
-
yield_expressions_are_not_currently_supported: {code: 9000,category: DiagnosticCategory.Error,key: "'yield' expressions are not currently supported."},
544
-
Generators_are_not_currently_supported: {code: 9001,category: DiagnosticCategory.Error,key: "Generators are not currently supported."},
545
549
Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: {code: 9002,category: DiagnosticCategory.Error,key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses."},
546
550
class_expressions_are_not_currently_supported: {code: 9003,category: DiagnosticCategory.Error,key: "'class' expressions are not currently supported."},
547
551
class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration: {code: 9004,category: DiagnosticCategory.Error,key: "'class' declarations are only supported directly inside a module or as a top level declaration."},
0 commit comments