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
[](https://gitter.im/Microsoft/TypeScript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
8
10
9
11
[TypeScript](http://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](http://www.typescriptlang.org/Playground), and stay up to date via [our blog](http://blogs.msdn.com/typescript) and [twitter account](https://twitter.com/typescriptlang).
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,10 @@ 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."},
180
+
_0_tag_already_specified: {code: 1222,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."},
179
183
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
@@ -365,6 +369,8 @@ module ts {
365
369
A_rest_element_cannot_contain_a_binding_pattern: {code: 2501,category: DiagnosticCategory.Error,key: "A rest element cannot contain a binding pattern."},
366
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."},
368
374
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
369
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}'."},
370
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}'."},
@@ -522,6 +528,7 @@ module ts {
522
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."},
523
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."},
524
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."},
525
532
You_cannot_rename_this_element: {code: 8000,category: DiagnosticCategory.Error,key: "You cannot rename this element."},
526
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."},
527
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."},
@@ -535,13 +542,10 @@ module ts {
535
542
types_can_only_be_used_in_a_ts_file: {code: 8010,category: DiagnosticCategory.Error,key: "'types' can only be used in a .ts file."},
536
543
type_arguments_can_only_be_used_in_a_ts_file: {code: 8011,category: DiagnosticCategory.Error,key: "'type arguments' can only be used in a .ts file."},
537
544
parameter_modifiers_can_only_be_used_in_a_ts_file: {code: 8012,category: DiagnosticCategory.Error,key: "'parameter modifiers' can only be used in a .ts file."},
538
-
can_only_be_used_in_a_ts_file: {code: 8013,category: DiagnosticCategory.Error,key: "'?' can only be used in a .ts file."},
539
545
property_declarations_can_only_be_used_in_a_ts_file: {code: 8014,category: DiagnosticCategory.Error,key: "'property declarations' can only be used in a .ts file."},
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."},
0 commit comments