typescript 4.8.0-dev.20220513 → 4.8.0-dev.20220516

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "jeden z:",
1778
1778
  "one_or_more_Colon_6901": "1 nebo více:",
1779
1779
  "options_6024": "možnosti",
1780
+ "or_JSX_element_expected_1145": "Očekával se element { nebo JSX.",
1780
1781
  "or_expected_1144": "Očekává se znak { nebo ;.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "Soubor package.json neobsahuje pole {0}.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "package.json nemá položku typesVersions, která by odpovídala verzi {0}.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "eines von:",
1778
1778
  "one_or_more_Colon_6901": "eins oder mehr:",
1779
1779
  "options_6024": "Optionen",
1780
+ "or_JSX_element_expected_1145": "'{' oder JSX-Element erwartet.",
1780
1781
  "or_expected_1144": "\"{\" oder \";\" wurde erwartet.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" besitzt kein \"{0}\"-Feld.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package.json\" weist keinen Eintrag \"typesVersions\" auf, der mit der Version {0} übereinstimmt.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "uno de:",
1778
1778
  "one_or_more_Colon_6901": "uno o más:",
1779
1779
  "options_6024": "Opciones",
1780
+ "or_JSX_element_expected_1145": "Se esperaba \"{\" o un elemento JSX.",
1780
1781
  "or_expected_1144": "Se esperaba \"{\" o \";\".",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" no tiene un campo \"{0}\".",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "El archivo \"package.json\" no tiene ninguna entrada \"typesVersions\" que coincida con la versión \"{0}\".",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "L'un de :",
1778
1778
  "one_or_more_Colon_6901": "un ou plusieurs :",
1779
1779
  "options_6024": "options",
1780
+ "or_JSX_element_expected_1145": "'{' ou élément JSX attendu.",
1780
1781
  "or_expected_1144": "'{' ou ';' attendu.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' n'a aucun champ '{0}'.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' n'a aucune entrée 'typesVersions' qui correspond à la version '{0}'.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "uno di:",
1778
1778
  "one_or_more_Colon_6901": "uno o più:",
1779
1779
  "options_6024": "opzioni",
1780
+ "or_JSX_element_expected_1145": "Previsto elemento '{' o JSX.",
1780
1781
  "or_expected_1144": "È previsto '{' o ';'.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "Il file 'package.json' non contiene un campo '{0}'.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' non contiene alcuna voce di 'typesVersions' corrispondente alla versione '{0}'.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "次のいずれか:",
1778
1778
  "one_or_more_Colon_6901": "1 つ以上",
1779
1779
  "options_6024": "オプション",
1780
+ "or_JSX_element_expected_1145": "'{' または JSX 要素が必要です。",
1780
1781
  "or_expected_1144": "'{' または ';' が必要です。",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' に '{0}' フィールドがありません。",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' には、バージョン '{0}' と一致する 'typesVersions' エントリがありません。",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "다음 중 하나:",
1778
1778
  "one_or_more_Colon_6901": "하나 이상:",
1779
1779
  "options_6024": "옵션",
1780
+ "or_JSX_element_expected_1145": "'{' 또는 JSX 요소가 필요합니다.",
1780
1781
  "or_expected_1144": "'{' 또는 ';'이(가) 필요합니다.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json'에는 '{0}' 필드가 없습니다.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json'에 '{0}' 버전과 일치하는 'typesVersions' 항목이 없습니다.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "jeden z:",
1778
1778
  "one_or_more_Colon_6901": "co najmniej jeden:",
1779
1779
  "options_6024": "opcje",
1780
+ "or_JSX_element_expected_1145": "Oczekiwano elementu „{” lub JSX.",
1780
1781
  "or_expected_1144": "Oczekiwano znaku „{” lub „;”.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "Plik „package.json” nie zawiera pola „{0}”.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "Plik „package.json” nie zawiera wpisu „typesVersions” odpowiadającego wersji „{0}”.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "um dos:",
1778
1778
  "one_or_more_Colon_6901": "um ou mais:",
1779
1779
  "options_6024": "opções",
1780
+ "or_JSX_element_expected_1145": "'{' ou elemento JSX esperado.",
1780
1781
  "or_expected_1144": "'{' ou ';' esperado.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' não tem um campo '{0}'.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' não tem uma entrada 'typesVersions' que corresponda à versão '{0}'.",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "один из:",
1778
1778
  "one_or_more_Colon_6901": "один или более:",
1779
1779
  "options_6024": "параметры",
1780
+ "or_JSX_element_expected_1145": "Ожидался элемент JSX или \"{\".",
1780
1781
  "or_expected_1144": "Ожидалось \"{\" или \";\".",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "В package.json нет поля \"{0}\".",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "В файле \"package.json\" отсутствует запись \"typesVersions\", соответствующая версии \"{0}\".",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "şunlardan biri:",
1778
1778
  "one_or_more_Colon_6901": "bir veya daha fazla:",
1779
1779
  "options_6024": "seçenekler",
1780
+ "or_JSX_element_expected_1145": "'{' veya JSX öğesi bekleniyor.",
1780
1781
  "or_expected_1144": "'{' veya ';' bekleniyor.",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' geçerli bir '{0}' alanına sahip değil.",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json', '{0}' sürümüyle eşleşen bir 'typesVersions' girdisine sahip değil.",
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.8";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -5472,6 +5472,7 @@ var ts;
5472
5472
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
5473
5473
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
5474
5474
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
5475
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
5475
5476
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
5476
5477
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
5477
5478
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -5490,6 +5491,7 @@ var ts;
5490
5491
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
5491
5492
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
5492
5493
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
5494
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
5493
5495
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
5494
5496
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
5495
5497
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -67276,6 +67278,9 @@ var ts;
67276
67278
  function checkMethodDeclaration(node) {
67277
67279
  if (!checkGrammarMethod(node))
67278
67280
  checkGrammarComputedPropertyName(node.name);
67281
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
67282
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
67283
+ }
67279
67284
  checkFunctionOrMethodDeclaration(node);
67280
67285
  if (ts.hasSyntacticModifier(node, 128) && node.kind === 169 && node.body) {
67281
67286
  error(node, ts.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, ts.declarationNameToString(node.name));
@@ -67381,6 +67386,9 @@ var ts;
67381
67386
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
67382
67387
  }
67383
67388
  function checkAccessorDeclaration(node) {
67389
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
67390
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
67391
+ }
67384
67392
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
67385
67393
  checkSourceElement(node.body);
67386
67394
  setNodeLinksForPrivateIdentifierScope(node);
@@ -96088,6 +96096,8 @@ var ts;
96088
96096
  ts.Diagnostics.extends_clause_already_seen.code,
96089
96097
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
96090
96098
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
96099
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
96100
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
96091
96101
  ]);
96092
96102
  function shouldProgramCreateNewSourceFiles(program, newOptions) {
96093
96103
  if (!program)
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -8288,6 +8288,7 @@ var ts;
8288
8288
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8289
8289
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8290
8290
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8291
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8291
8292
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8292
8293
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8293
8294
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8306,6 +8307,7 @@ var ts;
8306
8307
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8307
8308
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8308
8309
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8310
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8309
8311
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8310
8312
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8311
8313
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -80286,6 +80288,9 @@ var ts;
80286
80288
  // Grammar checking
80287
80289
  if (!checkGrammarMethod(node))
80288
80290
  checkGrammarComputedPropertyName(node.name);
80291
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80292
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80293
+ }
80289
80294
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80290
80295
  checkFunctionOrMethodDeclaration(node);
80291
80296
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80413,6 +80418,9 @@ var ts;
80413
80418
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80414
80419
  }
80415
80420
  function checkAccessorDeclaration(node) {
80421
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80422
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80423
+ }
80416
80424
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80417
80425
  checkSourceElement(node.body);
80418
80426
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116437,6 +116445,8 @@ var ts;
116437
116445
  ts.Diagnostics.extends_clause_already_seen.code,
116438
116446
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116439
116447
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116448
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116449
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116440
116450
  ]);
116441
116451
  /**
116442
116452
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8482,6 +8482,7 @@ var ts;
8482
8482
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8483
8483
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8484
8484
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8485
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8485
8486
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8486
8487
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8487
8488
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8500,6 +8501,7 @@ var ts;
8500
8501
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8501
8502
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8502
8503
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8504
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8503
8505
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8504
8506
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8505
8507
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -80480,6 +80482,9 @@ var ts;
80480
80482
  // Grammar checking
80481
80483
  if (!checkGrammarMethod(node))
80482
80484
  checkGrammarComputedPropertyName(node.name);
80485
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80486
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80487
+ }
80483
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80484
80489
  checkFunctionOrMethodDeclaration(node);
80485
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80607,6 +80612,9 @@ var ts;
80607
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80608
80613
  }
80609
80614
  function checkAccessorDeclaration(node) {
80615
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80616
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80617
+ }
80610
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80611
80619
  checkSourceElement(node.body);
80612
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116631,6 +116639,8 @@ var ts;
116631
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116632
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116633
116641
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116642
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116643
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116634
116644
  ]);
116635
116645
  /**
116636
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
package/lib/typescript.js CHANGED
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8482,6 +8482,7 @@ var ts;
8482
8482
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8483
8483
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8484
8484
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8485
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8485
8486
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8486
8487
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8487
8488
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8500,6 +8501,7 @@ var ts;
8500
8501
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8501
8502
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8502
8503
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8504
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8503
8505
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8504
8506
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8505
8507
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -80480,6 +80482,9 @@ var ts;
80480
80482
  // Grammar checking
80481
80483
  if (!checkGrammarMethod(node))
80482
80484
  checkGrammarComputedPropertyName(node.name);
80485
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80486
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80487
+ }
80483
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80484
80489
  checkFunctionOrMethodDeclaration(node);
80485
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80607,6 +80612,9 @@ var ts;
80607
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80608
80613
  }
80609
80614
  function checkAccessorDeclaration(node) {
80615
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80616
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80617
+ }
80610
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80611
80619
  checkSourceElement(node.body);
80612
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116631,6 +116639,8 @@ var ts;
116631
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116632
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116633
116641
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116642
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116643
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116634
116644
  ]);
116635
116645
  /**
116636
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -8482,6 +8482,7 @@ var ts;
8482
8482
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8483
8483
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8484
8484
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8485
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8485
8486
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8486
8487
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8487
8488
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8500,6 +8501,7 @@ var ts;
8500
8501
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8501
8502
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8502
8503
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8504
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8503
8505
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8504
8506
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8505
8507
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -80480,6 +80482,9 @@ var ts;
80480
80482
  // Grammar checking
80481
80483
  if (!checkGrammarMethod(node))
80482
80484
  checkGrammarComputedPropertyName(node.name);
80485
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80486
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80487
+ }
80483
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80484
80489
  checkFunctionOrMethodDeclaration(node);
80485
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80607,6 +80612,9 @@ var ts;
80607
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80608
80613
  }
80609
80614
  function checkAccessorDeclaration(node) {
80615
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80616
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80617
+ }
80610
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80611
80619
  checkSourceElement(node.body);
80612
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116631,6 +116639,8 @@ var ts;
116631
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116632
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116633
116641
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116642
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116643
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116634
116644
  ]);
116635
116645
  /**
116636
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-dev.20220513";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220516";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -8277,6 +8277,7 @@ var ts;
8277
8277
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8278
8278
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8279
8279
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8280
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8280
8281
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8281
8282
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8282
8283
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8295,6 +8296,7 @@ var ts;
8295
8296
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8296
8297
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8297
8298
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8299
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8298
8300
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8299
8301
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8300
8302
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -80275,6 +80277,9 @@ var ts;
80275
80277
  // Grammar checking
80276
80278
  if (!checkGrammarMethod(node))
80277
80279
  checkGrammarComputedPropertyName(node.name);
80280
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80281
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80282
+ }
80278
80283
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80279
80284
  checkFunctionOrMethodDeclaration(node);
80280
80285
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80402,6 +80407,9 @@ var ts;
80402
80407
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80403
80408
  }
80404
80409
  function checkAccessorDeclaration(node) {
80410
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80411
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80412
+ }
80405
80413
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80406
80414
  checkSourceElement(node.body);
80407
80415
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116426,6 +116434,8 @@ var ts;
116426
116434
  ts.Diagnostics.extends_clause_already_seen.code,
116427
116435
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116428
116436
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116437
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116438
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116429
116439
  ]);
116430
116440
  /**
116431
116441
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "使 keyof 仅返回字符串,而不是字符串、数字或符号。旧版选项。",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "在构造函数中,使 \"super()\" 调用第一个语句",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "映射的对象类型隐式地含有 \"any\" 模板类型。",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "默认情况下匹配包括模式 “**/*”",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "通过在 \"{1}\" 中的包含模式 \"{0}\" 匹配",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "成员“{0}”隐式包含类型“{1}”。",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "成员 \"{0}\" 隐式具有 \"{1}\" 类型,但可以从用法中推断出更好的类型。",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "以下其中一个:",
1777
1778
  "one_or_more_Colon_6901": "一个或更多:",
1778
1779
  "options_6024": "选项",
1780
+ "or_JSX_element_expected_1145": "应为 “{” 或 JSX 元素。",
1779
1781
  "or_expected_1144": "应为 \"{\" 或 \";\"。",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" 没有“{0}”字段。",
1781
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package. json\" 没有与版本 \"{0}\" 匹配的 \"typesVersions\" 项。",
@@ -1777,6 +1777,7 @@
1777
1777
  "one_of_Colon_6900": "以下其中一個:",
1778
1778
  "one_or_more_Colon_6901": "以下一或多個:",
1779
1779
  "options_6024": "選項",
1780
+ "or_JSX_element_expected_1145": "必須是 '{' 或 JSX 元素。",
1780
1781
  "or_expected_1144": "必須是 '{' 或 ';'。",
1781
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' 沒有 '{0}' 欄位。",
1782
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' 沒有任何符合 '{0}' 版本的 'typesVersions' 項目。",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.8.0-dev.20220513",
5
+ "version": "4.8.0-dev.20220516",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [