typescript 4.8.0-dev.20220512 → 4.8.0-dev.20220515

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.
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Vytvořte klíč jenom ze zpětných řetězců místo z řetězců, čísel nebo symbolů (možnost ze starší verze).",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Nastavit volání metody super() jako první příkaz v konstruktoru",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Typu mapovaného objektu má implicitně typ šablony any.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Porovnává se ve výchozím nastavení se vzorem zahrnutí **/*.",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Porovnáváno podle vzoru zahrnutí {0} v {1}",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "Člen {0} má implicitně typ {1}.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Člen {0} má implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z použití.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "jeden z:",
1777
1778
  "one_or_more_Colon_6901": "1 nebo více:",
1778
1779
  "options_6024": "možnosti",
1780
+ "or_JSX_element_expected_1145": "Očekával se element { nebo JSX.",
1779
1781
  "or_expected_1144": "Očekává se znak { nebo ;.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "Soubor package.json neobsahuje pole {0}.",
1781
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}.",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Stellen Sie ein, dass keyof nur Zeichenfolgen, anstelle von Zeichenfolgen, Zahlen oder Symbolen zurückgibt. Legacy-Option.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "super()-Aufruf als erste Anweisung im Konstruktor festlegen",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Der zugeordnete Objekttyp weist implizit einen any-Vorlagentyp auf.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Standardmäßig zugeordnetes Includemuster „**/*“",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Abgeglichen mit dem include-Muster \"{0}\" in \"{1}\"",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "Der Member \"{0}\" weist implizit den Typ \"{1}\" auf.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Member \"{0}\" weist implizit einen Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "eines von:",
1777
1778
  "one_or_more_Colon_6901": "eins oder mehr:",
1778
1779
  "options_6024": "Optionen",
1780
+ "or_JSX_element_expected_1145": "'{' oder JSX-Element erwartet.",
1779
1781
  "or_expected_1144": "\"{\" oder \";\" wurde erwartet.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" besitzt kein \"{0}\"-Feld.",
1781
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.",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Haga que keyof solo devuelva cadenas en lugar de cadenas, números o símbolos. Opción heredada.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Hacer que la llamada a \"super()\" sea la primera instrucción del constructor",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "El tipo de objeto asignado tiene implícitamente un tipo de plantilla \"any\".",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "La coincidencia de forma predeterminada incluye el patrón '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Coincidencia con el patrón de inclusión \"{0}\" en \"{1}\"",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "El miembro '{0}' tiene un tipo '{1}' implícitamente.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "El miembro \"{0}\" tiene un tipo \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "uno de:",
1777
1778
  "one_or_more_Colon_6901": "uno o más:",
1778
1779
  "options_6024": "Opciones",
1780
+ "or_JSX_element_expected_1145": "Se esperaba \"{\" o un elemento JSX.",
1779
1781
  "or_expected_1144": "Se esperaba \"{\" o \";\".",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" no tiene un campo \"{0}\".",
1781
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}\".",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Faites en sorte que keyof retourne uniquement des chaînes au lieu de chaînes, de nombres ou de symboles. Option héritée.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Faire de l'appel à 'super()' la première instruction du constructeur",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Le type d'objet mappé a implicitement un type de modèle 'any'.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Mise en correspondance par défaut du modèle include '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Correspond au modèle include '{0}' dans '{1}'",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "Le membre '{0}' possède implicitement un type '{1}'.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Le membre '{0}' a implicitement un type '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Imposta keyof in modo che restituisca solo stringhe invece di stringhe, numeri o simboli. Opzione legacy.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Impostare la chiamata a 'super()' come prima istruzione nel costruttore",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Il tipo di oggetto con mapping contiene implicitamente un tipo di modello 'any'.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Corrispondente per impostazione predefinita al criterio di inclusione '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Corrispondenza tramite criterio di inclusione '{0}' in '{1}'",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "Il membro '{0}' contiene implicitamente un tipo '{1}'.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Il membro '{0}' include implicitamente un tipo '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "uno di:",
1777
1778
  "one_or_more_Colon_6901": "uno o più:",
1778
1779
  "options_6024": "opzioni",
1780
+ "or_JSX_element_expected_1145": "Previsto elemento '{' o JSX.",
1779
1781
  "or_expected_1144": "È previsto '{' o ';'.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "Il file 'package.json' non contiene un campo '{0}'.",
1781
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}'.",
@@ -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": "1 つ以上",
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' エントリがありません。",
@@ -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' 항목이 없습니다.",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Określ, że element keyof ma zwracać tylko ciągi zamiast ciągów, liczb i symboli. Starsza opcja.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Ustaw wywołanie „super()” jako pierwszą instrukcję w konstruktorze",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Zmapowany typ obiektu niejawnie ma typ szablonu „any”.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Dopasowywane domyślnie do wzorca dołączania „**/*”",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Zgodne z wzorcem dołączania „{0}” w elemencie „{1}”",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "Dla składowej „{0}” niejawnie określono typ „{1}”.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Element członkowski „{0}” niejawnie ma typ „{1}”, ale lepszy typ można wywnioskować na podstawie użycia.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "jeden z:",
1777
1778
  "one_or_more_Colon_6901": "co najmniej jeden:",
1778
1779
  "options_6024": "opcje",
1780
+ "or_JSX_element_expected_1145": "Oczekiwano elementu „{” lub JSX.",
1779
1781
  "or_expected_1144": "Oczekiwano znaku „{” lub „;”.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "Plik „package.json” nie zawiera pola „{0}”.",
1781
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}”.",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Fazer com que o keyof retorne apenas cadeias de caracteres, números ou símbolos. Opção herdada.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Tornar a chamada 'super()' a primeira instrução no construtor",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "O tipo de objeto mapeado implicitamente tem um tipo de modelo 'any'.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Correspondido por padrão de inclusão padrão '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Correspondência pelo padrão de inclusão '{0}' em '{1}'",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "O membro '{0}' implicitamente tem um tipo '{1}'.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "O membro '{0}' implicitamente tem um tipo '{1}', mas um tipo melhor pode ser inferido do uso.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "um dos:",
1777
1778
  "one_or_more_Colon_6901": "um ou mais:",
1778
1779
  "options_6024": "opções",
1780
+ "or_JSX_element_expected_1145": "'{' ou elemento JSX esperado.",
1779
1781
  "or_expected_1144": "'{' ou ';' esperado.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' não tem um campo '{0}'.",
1781
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}'.",
@@ -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": "Сопоставленный объект неявно имеет тип шаблона \"любой\".",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Сопоставление по умолчанию включает шаблон '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "Соответствует шаблону включения \"{0}\" в \"{1}\".",
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\" отсутствует запись \"typesVersions\", соответствующая версии \"{0}\".",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Dize, sayı veya simge yerine yalnızca dönüş dizelerinin anahtarını oluşturun. Eski seçenek.",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Oluşturucudaki ilk deyime 'super()' tarafından çağrı yapılmasını sağla",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Eşleştirilmiş nesne türü örtük olarak 'any' şablon türüne sahip.",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Varsayılan '**/*' ekleme deseniyle eşleşti",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "'{1}' içindeki '{0}' ekleme desenine göre eşleştirildi",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "'{0}' üyesi örtük olarak '{1}' türüne sahip.",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "'{0}' üyesi örtük olarak bir '{1}' türüne sahip ancak kullanımdan daha iyi bir tür çıkarsanabilir.",
@@ -1776,6 +1777,7 @@
1776
1777
  "one_of_Colon_6900": "şunlardan biri:",
1777
1778
  "one_or_more_Colon_6901": "bir veya daha fazla:",
1778
1779
  "options_6024": "seçenekler",
1780
+ "or_JSX_element_expected_1145": "'{' veya JSX öğesi bekleniyor.",
1779
1781
  "or_expected_1144": "'{' veya ';' bekleniyor.",
1780
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' geçerli bir '{0}' alanına sahip değil.",
1781
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.20220512";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -6079,6 +6081,7 @@ var ts;
6079
6081
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
6080
6082
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
6081
6083
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
6084
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
6082
6085
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
6083
6086
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
6084
6087
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -9904,6 +9907,18 @@ var ts;
9904
9907
  return isLiteralKind(node.kind);
9905
9908
  }
9906
9909
  ts.isLiteralExpression = isLiteralExpression;
9910
+ function isLiteralExpressionOfObject(node) {
9911
+ switch (node.kind) {
9912
+ case 205:
9913
+ case 204:
9914
+ case 13:
9915
+ case 213:
9916
+ case 226:
9917
+ return true;
9918
+ }
9919
+ return false;
9920
+ }
9921
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
9907
9922
  function isTemplateLiteralKind(kind) {
9908
9923
  return 14 <= kind && kind <= 17;
9909
9924
  }
@@ -66099,6 +66114,10 @@ var ts;
66099
66114
  case 35:
66100
66115
  case 36:
66101
66116
  case 37:
66117
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
66118
+ var eqType = operator === 34 || operator === 36;
66119
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
66120
+ }
66102
66121
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
66103
66122
  return booleanType;
66104
66123
  case 102:
@@ -67259,6 +67278,9 @@ var ts;
67259
67278
  function checkMethodDeclaration(node) {
67260
67279
  if (!checkGrammarMethod(node))
67261
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
+ }
67262
67284
  checkFunctionOrMethodDeclaration(node);
67263
67285
  if (ts.hasSyntacticModifier(node, 128) && node.kind === 169 && node.body) {
67264
67286
  error(node, ts.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, ts.declarationNameToString(node.name));
@@ -67364,6 +67386,9 @@ var ts;
67364
67386
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
67365
67387
  }
67366
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
+ }
67367
67392
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
67368
67393
  checkSourceElement(node.body);
67369
67394
  setNodeLinksForPrivateIdentifierScope(node);
@@ -96071,6 +96096,8 @@ var ts;
96071
96096
  ts.Diagnostics.extends_clause_already_seen.code,
96072
96097
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
96073
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,
96074
96101
  ]);
96075
96102
  function shouldProgramCreateNewSourceFiles(program, newOptions) {
96076
96103
  if (!program)
@@ -101705,6 +101732,13 @@ var ts;
101705
101732
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
101706
101733
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
101707
101734
  PackageJson: "package.json file",
101735
+ ClosedScriptInfo: "Closed Script info",
101736
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
101737
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
101738
+ MissingSourceMapFile: "Missing source map file",
101739
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
101740
+ MissingGeneratedFile: "Missing generated file",
101741
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
101708
101742
  };
101709
101743
  function createWatchFactory(host, options) {
101710
101744
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
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.20220512";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -8895,6 +8897,7 @@ var ts;
8895
8897
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
8896
8898
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
8897
8899
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
8900
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
8898
8901
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
8899
8902
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
8900
8903
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13205,6 +13208,19 @@ var ts;
13205
13208
  return isLiteralKind(node.kind);
13206
13209
  }
13207
13210
  ts.isLiteralExpression = isLiteralExpression;
13211
+ /** @internal */
13212
+ function isLiteralExpressionOfObject(node) {
13213
+ switch (node.kind) {
13214
+ case 205 /* ObjectLiteralExpression */:
13215
+ case 204 /* ArrayLiteralExpression */:
13216
+ case 13 /* RegularExpressionLiteral */:
13217
+ case 213 /* FunctionExpression */:
13218
+ case 226 /* ClassExpression */:
13219
+ return true;
13220
+ }
13221
+ return false;
13222
+ }
13223
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13208
13224
  // Pseudo-literals
13209
13225
  /* @internal */
13210
13226
  function isTemplateLiteralKind(kind) {
@@ -78977,6 +78993,10 @@ var ts;
78977
78993
  case 35 /* ExclamationEqualsToken */:
78978
78994
  case 36 /* EqualsEqualsEqualsToken */:
78979
78995
  case 37 /* ExclamationEqualsEqualsToken */:
78996
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
78997
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
78998
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
78999
+ }
78980
79000
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
78981
79001
  return booleanType;
78982
79002
  case 102 /* InstanceOfKeyword */:
@@ -80268,6 +80288,9 @@ var ts;
80268
80288
  // Grammar checking
80269
80289
  if (!checkGrammarMethod(node))
80270
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
+ }
80271
80294
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80272
80295
  checkFunctionOrMethodDeclaration(node);
80273
80296
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80395,6 +80418,9 @@ var ts;
80395
80418
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80396
80419
  }
80397
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
+ }
80398
80424
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80399
80425
  checkSourceElement(node.body);
80400
80426
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116419,6 +116445,8 @@ var ts;
116419
116445
  ts.Diagnostics.extends_clause_already_seen.code,
116420
116446
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116421
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,
116422
116450
  ]);
116423
116451
  /**
116424
116452
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -122946,6 +122974,13 @@ var ts;
122946
122974
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
122947
122975
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
122948
122976
  PackageJson: "package.json file",
122977
+ ClosedScriptInfo: "Closed Script info",
122978
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
122979
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
122980
+ MissingSourceMapFile: "Missing source map file",
122981
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
122982
+ MissingGeneratedFile: "Missing generated file",
122983
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
122949
122984
  };
122950
122985
  function createWatchFactory(host, options) {
122951
122986
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -165712,7 +165747,7 @@ var ts;
165712
165747
  function getDefaultLibFilePath(options) {
165713
165748
  // Check __dirname is defined and that we are on a node.js system.
165714
165749
  if (typeof __dirname !== "undefined") {
165715
- return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options);
165750
+ return ts.combinePaths(__dirname, ts.getDefaultLibFileName(options));
165716
165751
  }
165717
165752
  throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ");
165718
165753
  }
@@ -167841,16 +167876,6 @@ var ts;
167841
167876
  server.stringifyIndented = stringifyIndented;
167842
167877
  })(server = ts.server || (ts.server = {}));
167843
167878
  })(ts || (ts = {}));
167844
- /* @internal */
167845
- var ts;
167846
- (function (ts) {
167847
- ts.WatchType.ClosedScriptInfo = "Closed Script info";
167848
- ts.WatchType.ConfigFileForInferredRoot = "Config file for the inferred project root";
167849
- ts.WatchType.NodeModules = "node_modules for closed script infos and package.jsons affecting module specifier cache";
167850
- ts.WatchType.MissingSourceMapFile = "Missing source map file";
167851
- ts.WatchType.NoopConfigFileForInferredRoot = "Noop Config file for the inferred project root";
167852
- ts.WatchType.MissingGeneratedFile = "Missing generated file";
167853
- })(ts || (ts = {}));
167854
167879
  /* eslint-disable @typescript-eslint/no-unnecessary-qualifier */
167855
167880
  /**
167856
167881
  * Declaration module describing the TypeScript Server protocol
@@ -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.20220512";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -9089,6 +9091,7 @@ var ts;
9089
9091
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
9090
9092
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
9091
9093
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
9094
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
9092
9095
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
9093
9096
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
9094
9097
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13399,6 +13402,19 @@ var ts;
13399
13402
  return isLiteralKind(node.kind);
13400
13403
  }
13401
13404
  ts.isLiteralExpression = isLiteralExpression;
13405
+ /** @internal */
13406
+ function isLiteralExpressionOfObject(node) {
13407
+ switch (node.kind) {
13408
+ case 205 /* ObjectLiteralExpression */:
13409
+ case 204 /* ArrayLiteralExpression */:
13410
+ case 13 /* RegularExpressionLiteral */:
13411
+ case 213 /* FunctionExpression */:
13412
+ case 226 /* ClassExpression */:
13413
+ return true;
13414
+ }
13415
+ return false;
13416
+ }
13417
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13402
13418
  // Pseudo-literals
13403
13419
  /* @internal */
13404
13420
  function isTemplateLiteralKind(kind) {
@@ -79171,6 +79187,10 @@ var ts;
79171
79187
  case 35 /* ExclamationEqualsToken */:
79172
79188
  case 36 /* EqualsEqualsEqualsToken */:
79173
79189
  case 37 /* ExclamationEqualsEqualsToken */:
79190
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
79191
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
79192
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
79193
+ }
79174
79194
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
79175
79195
  return booleanType;
79176
79196
  case 102 /* InstanceOfKeyword */:
@@ -80462,6 +80482,9 @@ var ts;
80462
80482
  // Grammar checking
80463
80483
  if (!checkGrammarMethod(node))
80464
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
+ }
80465
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80466
80489
  checkFunctionOrMethodDeclaration(node);
80467
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80589,6 +80612,9 @@ var ts;
80589
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80590
80613
  }
80591
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
+ }
80592
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80593
80619
  checkSourceElement(node.body);
80594
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116613,6 +116639,8 @@ var ts;
116613
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116614
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116615
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,
116616
116644
  ]);
116617
116645
  /**
116618
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -123140,6 +123168,13 @@ var ts;
123140
123168
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
123141
123169
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
123142
123170
  PackageJson: "package.json file",
123171
+ ClosedScriptInfo: "Closed Script info",
123172
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
123173
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
123174
+ MissingSourceMapFile: "Missing source map file",
123175
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
123176
+ MissingGeneratedFile: "Missing generated file",
123177
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
123143
123178
  };
123144
123179
  function createWatchFactory(host, options) {
123145
123180
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -166323,7 +166358,7 @@ var ts;
166323
166358
  function getDefaultLibFilePath(options) {
166324
166359
  // Check __dirname is defined and that we are on a node.js system.
166325
166360
  if (typeof __dirname !== "undefined") {
166326
- return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options);
166361
+ return ts.combinePaths(__dirname, ts.getDefaultLibFileName(options));
166327
166362
  }
166328
166363
  throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ");
166329
166364
  }
@@ -168035,16 +168070,6 @@ var ts;
168035
168070
  server.stringifyIndented = stringifyIndented;
168036
168071
  })(server = ts.server || (ts.server = {}));
168037
168072
  })(ts || (ts = {}));
168038
- /* @internal */
168039
- var ts;
168040
- (function (ts) {
168041
- ts.WatchType.ClosedScriptInfo = "Closed Script info";
168042
- ts.WatchType.ConfigFileForInferredRoot = "Config file for the inferred project root";
168043
- ts.WatchType.NodeModules = "node_modules for closed script infos and package.jsons affecting module specifier cache";
168044
- ts.WatchType.MissingSourceMapFile = "Missing source map file";
168045
- ts.WatchType.NoopConfigFileForInferredRoot = "Noop Config file for the inferred project root";
168046
- ts.WatchType.MissingGeneratedFile = "Missing generated file";
168047
- })(ts || (ts = {}));
168048
168073
  /* eslint-disable @typescript-eslint/no-unnecessary-qualifier */
168049
168074
  /**
168050
168075
  * Declaration module describing the TypeScript Server protocol
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.20220512";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -9089,6 +9091,7 @@ var ts;
9089
9091
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
9090
9092
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
9091
9093
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
9094
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
9092
9095
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
9093
9096
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
9094
9097
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13399,6 +13402,19 @@ var ts;
13399
13402
  return isLiteralKind(node.kind);
13400
13403
  }
13401
13404
  ts.isLiteralExpression = isLiteralExpression;
13405
+ /** @internal */
13406
+ function isLiteralExpressionOfObject(node) {
13407
+ switch (node.kind) {
13408
+ case 205 /* ObjectLiteralExpression */:
13409
+ case 204 /* ArrayLiteralExpression */:
13410
+ case 13 /* RegularExpressionLiteral */:
13411
+ case 213 /* FunctionExpression */:
13412
+ case 226 /* ClassExpression */:
13413
+ return true;
13414
+ }
13415
+ return false;
13416
+ }
13417
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13402
13418
  // Pseudo-literals
13403
13419
  /* @internal */
13404
13420
  function isTemplateLiteralKind(kind) {
@@ -79171,6 +79187,10 @@ var ts;
79171
79187
  case 35 /* ExclamationEqualsToken */:
79172
79188
  case 36 /* EqualsEqualsEqualsToken */:
79173
79189
  case 37 /* ExclamationEqualsEqualsToken */:
79190
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
79191
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
79192
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
79193
+ }
79174
79194
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
79175
79195
  return booleanType;
79176
79196
  case 102 /* InstanceOfKeyword */:
@@ -80462,6 +80482,9 @@ var ts;
80462
80482
  // Grammar checking
80463
80483
  if (!checkGrammarMethod(node))
80464
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
+ }
80465
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80466
80489
  checkFunctionOrMethodDeclaration(node);
80467
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80589,6 +80612,9 @@ var ts;
80589
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80590
80613
  }
80591
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
+ }
80592
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80593
80619
  checkSourceElement(node.body);
80594
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116613,6 +116639,8 @@ var ts;
116613
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116614
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116615
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,
116616
116644
  ]);
116617
116645
  /**
116618
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -123140,6 +123168,13 @@ var ts;
123140
123168
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
123141
123169
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
123142
123170
  PackageJson: "package.json file",
123171
+ ClosedScriptInfo: "Closed Script info",
123172
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
123173
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
123174
+ MissingSourceMapFile: "Missing source map file",
123175
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
123176
+ MissingGeneratedFile: "Missing generated file",
123177
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
123143
123178
  };
123144
123179
  function createWatchFactory(host, options) {
123145
123180
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -166323,7 +166358,7 @@ var ts;
166323
166358
  function getDefaultLibFilePath(options) {
166324
166359
  // Check __dirname is defined and that we are on a node.js system.
166325
166360
  if (typeof __dirname !== "undefined") {
166326
- return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options);
166361
+ return ts.combinePaths(__dirname, ts.getDefaultLibFileName(options));
166327
166362
  }
166328
166363
  throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ");
166329
166364
  }
@@ -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.20220512";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -9089,6 +9091,7 @@ var ts;
9089
9091
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
9090
9092
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
9091
9093
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
9094
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
9092
9095
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
9093
9096
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
9094
9097
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13399,6 +13402,19 @@ var ts;
13399
13402
  return isLiteralKind(node.kind);
13400
13403
  }
13401
13404
  ts.isLiteralExpression = isLiteralExpression;
13405
+ /** @internal */
13406
+ function isLiteralExpressionOfObject(node) {
13407
+ switch (node.kind) {
13408
+ case 205 /* ObjectLiteralExpression */:
13409
+ case 204 /* ArrayLiteralExpression */:
13410
+ case 13 /* RegularExpressionLiteral */:
13411
+ case 213 /* FunctionExpression */:
13412
+ case 226 /* ClassExpression */:
13413
+ return true;
13414
+ }
13415
+ return false;
13416
+ }
13417
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13402
13418
  // Pseudo-literals
13403
13419
  /* @internal */
13404
13420
  function isTemplateLiteralKind(kind) {
@@ -79171,6 +79187,10 @@ var ts;
79171
79187
  case 35 /* ExclamationEqualsToken */:
79172
79188
  case 36 /* EqualsEqualsEqualsToken */:
79173
79189
  case 37 /* ExclamationEqualsEqualsToken */:
79190
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
79191
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
79192
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
79193
+ }
79174
79194
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
79175
79195
  return booleanType;
79176
79196
  case 102 /* InstanceOfKeyword */:
@@ -80462,6 +80482,9 @@ var ts;
80462
80482
  // Grammar checking
80463
80483
  if (!checkGrammarMethod(node))
80464
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
+ }
80465
80488
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80466
80489
  checkFunctionOrMethodDeclaration(node);
80467
80490
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80589,6 +80612,9 @@ var ts;
80589
80612
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80590
80613
  }
80591
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
+ }
80592
80618
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80593
80619
  checkSourceElement(node.body);
80594
80620
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116613,6 +116639,8 @@ var ts;
116613
116639
  ts.Diagnostics.extends_clause_already_seen.code,
116614
116640
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116615
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,
116616
116644
  ]);
116617
116645
  /**
116618
116646
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -123140,6 +123168,13 @@ var ts;
123140
123168
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
123141
123169
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
123142
123170
  PackageJson: "package.json file",
123171
+ ClosedScriptInfo: "Closed Script info",
123172
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
123173
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
123174
+ MissingSourceMapFile: "Missing source map file",
123175
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
123176
+ MissingGeneratedFile: "Missing generated file",
123177
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
123143
123178
  };
123144
123179
  function createWatchFactory(host, options) {
123145
123180
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -166323,7 +166358,7 @@ var ts;
166323
166358
  function getDefaultLibFilePath(options) {
166324
166359
  // Check __dirname is defined and that we are on a node.js system.
166325
166360
  if (typeof __dirname !== "undefined") {
166326
- return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options);
166361
+ return ts.combinePaths(__dirname, ts.getDefaultLibFileName(options));
166327
166362
  }
166328
166363
  throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ");
166329
166364
  }
@@ -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.20220512";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220515";
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."),
@@ -8884,6 +8886,7 @@ var ts;
8884
8886
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
8885
8887
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
8886
8888
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
8889
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
8887
8890
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
8888
8891
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
8889
8892
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13194,6 +13197,19 @@ var ts;
13194
13197
  return isLiteralKind(node.kind);
13195
13198
  }
13196
13199
  ts.isLiteralExpression = isLiteralExpression;
13200
+ /** @internal */
13201
+ function isLiteralExpressionOfObject(node) {
13202
+ switch (node.kind) {
13203
+ case 205 /* ObjectLiteralExpression */:
13204
+ case 204 /* ArrayLiteralExpression */:
13205
+ case 13 /* RegularExpressionLiteral */:
13206
+ case 213 /* FunctionExpression */:
13207
+ case 226 /* ClassExpression */:
13208
+ return true;
13209
+ }
13210
+ return false;
13211
+ }
13212
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13197
13213
  // Pseudo-literals
13198
13214
  /* @internal */
13199
13215
  function isTemplateLiteralKind(kind) {
@@ -78966,6 +78982,10 @@ var ts;
78966
78982
  case 35 /* ExclamationEqualsToken */:
78967
78983
  case 36 /* EqualsEqualsEqualsToken */:
78968
78984
  case 37 /* ExclamationEqualsEqualsToken */:
78985
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
78986
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
78987
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
78988
+ }
78969
78989
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
78970
78990
  return booleanType;
78971
78991
  case 102 /* InstanceOfKeyword */:
@@ -80257,6 +80277,9 @@ var ts;
80257
80277
  // Grammar checking
80258
80278
  if (!checkGrammarMethod(node))
80259
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
+ }
80260
80283
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80261
80284
  checkFunctionOrMethodDeclaration(node);
80262
80285
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80384,6 +80407,9 @@ var ts;
80384
80407
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80385
80408
  }
80386
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
+ }
80387
80413
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80388
80414
  checkSourceElement(node.body);
80389
80415
  setNodeLinksForPrivateIdentifierScope(node);
@@ -116408,6 +116434,8 @@ var ts;
116408
116434
  ts.Diagnostics.extends_clause_already_seen.code,
116409
116435
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116410
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,
116411
116439
  ]);
116412
116440
  /**
116413
116441
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -122935,6 +122963,13 @@ var ts;
122935
122963
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
122936
122964
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
122937
122965
  PackageJson: "package.json file",
122966
+ ClosedScriptInfo: "Closed Script info",
122967
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
122968
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
122969
+ MissingSourceMapFile: "Missing source map file",
122970
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
122971
+ MissingGeneratedFile: "Missing generated file",
122972
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
122938
122973
  };
122939
122974
  function createWatchFactory(host, options) {
122940
122975
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -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\" 项。",
@@ -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' 項目。",
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.20220512",
5
+ "version": "4.8.0-dev.20220515",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [