typescript 4.8.0-dev.20220511 → 4.8.0-dev.20220514
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.
- package/lib/cs/diagnosticMessages.generated.json +2 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/es/diagnosticMessages.generated.json +2 -0
- package/lib/fr/diagnosticMessages.generated.json +2 -0
- package/lib/it/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +2 -0
- package/lib/ko/diagnosticMessages.generated.json +2 -0
- package/lib/pl/diagnosticMessages.generated.json +2 -0
- package/lib/pt-br/diagnosticMessages.generated.json +2 -0
- package/lib/ru/diagnosticMessages.generated.json +2 -0
- package/lib/tr/diagnosticMessages.generated.json +2 -0
- package/lib/tsc.js +70 -15
- package/lib/tsserver.js +72 -26
- package/lib/tsserverlibrary.d.ts +6 -5
- package/lib/tsserverlibrary.js +72 -26
- package/lib/typescript.d.ts +6 -5
- package/lib/typescript.js +72 -16
- package/lib/typescriptServices.d.ts +6 -5
- package/lib/typescriptServices.js +72 -16
- package/lib/typingsInstaller.js +71 -15
- package/lib/zh-cn/diagnosticMessages.generated.json +3 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +3 -0
- package/package.json +1 -1
|
@@ -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.",
|
|
@@ -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.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Les paramètres de type obligatoires ne peuvent pas être placés à la suite des paramètres de type optionnels.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La résolution du module '{0}' a été trouvée dans le cache à l'emplacement '{1}'.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La résolution de la directive de référence de type '{0}' a été trouvée dans le cache à l'emplacement '{1}'.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Les assertions du mode de résolution sont instables. Utilisez le TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour à l’aide de « npm install -D typescript@next ».",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Les modes de résolution sont pris en charge uniquement lorsque 'moduleResolution' est 'node16' ou 'nodenext'.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Résoudre 'keyof' en noms de propriétés de valeur chaîne uniquement (aucun nombre ou symbole).",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== Résolution du module '{0}' à partir de '{1}'. ========",
|
|
@@ -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.",
|
|
@@ -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.",
|
|
@@ -1199,6 +1200,7 @@
|
|
|
1199
1200
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Gerekli tür parametreleri, isteğe bağlı tür parametrelerini takip edemez.",
|
|
1200
1201
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' modülünün çözümü '{1}' konumundaki önbellekte bulundu.",
|
|
1201
1202
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{0}' tür başvurusu yönergesinin çözümlemesi '{1}' konumundaki önbellekte bulundu.",
|
|
1203
|
+
"Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Çözme modu onaylamaları kararlı değil. Bu hatayı sessize almak için gecelik TypeScript kullanın. 'npm install -D typescript@next' ile güncelleştirmeyi deneyin.",
|
|
1202
1204
|
"Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Çözünürlük modları yalnızca `moduleResolution` değeri `node16` veya `nodenext` olduğunda desteklenir.",
|
|
1203
1205
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'Keyof' değerini yalnızca dize değerli özellik adlarına (sayılar veya simgeler olmadan) çözümleyin.",
|
|
1204
1206
|
"Resolving_module_0_from_1_6086": "======== '{0}' modülü '{1}' öğesinden çözümleniyor. ========",
|
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.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220514";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -5326,6 +5326,7 @@ var ts;
|
|
|
5326
5326
|
String_literal_expected: diag(1141, ts.DiagnosticCategory.Error, "String_literal_expected_1141", "String literal expected."),
|
|
5327
5327
|
Line_break_not_permitted_here: diag(1142, ts.DiagnosticCategory.Error, "Line_break_not_permitted_here_1142", "Line break not permitted here."),
|
|
5328
5328
|
or_expected: diag(1144, ts.DiagnosticCategory.Error, "or_expected_1144", "'{' or ';' expected."),
|
|
5329
|
+
or_JSX_element_expected: diag(1145, ts.DiagnosticCategory.Error, "or_JSX_element_expected_1145", "'{' or JSX element expected."),
|
|
5329
5330
|
Declaration_expected: diag(1146, ts.DiagnosticCategory.Error, "Declaration_expected_1146", "Declaration expected."),
|
|
5330
5331
|
Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, ts.DiagnosticCategory.Error, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."),
|
|
5331
5332
|
Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, ts.DiagnosticCategory.Error, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."),
|
|
@@ -5471,6 +5472,7 @@ var ts;
|
|
|
5471
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."),
|
|
5472
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."),
|
|
5473
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."),
|
|
5474
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."),
|
|
5475
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'."),
|
|
5476
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."),
|
|
@@ -5489,6 +5491,7 @@ var ts;
|
|
|
5489
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 '}'."),
|
|
5490
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."),
|
|
5491
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."),
|
|
5492
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'."),
|
|
5493
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'."),
|
|
5494
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."),
|
|
@@ -6078,6 +6081,7 @@ var ts;
|
|
|
6078
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."),
|
|
6079
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."),
|
|
6080
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."),
|
|
6081
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}'."),
|
|
6082
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}'."),
|
|
6083
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}'."),
|
|
@@ -9903,6 +9907,18 @@ var ts;
|
|
|
9903
9907
|
return isLiteralKind(node.kind);
|
|
9904
9908
|
}
|
|
9905
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;
|
|
9906
9922
|
function isTemplateLiteralKind(kind) {
|
|
9907
9923
|
return 14 <= kind && kind <= 17;
|
|
9908
9924
|
}
|
|
@@ -28235,9 +28251,22 @@ var ts;
|
|
|
28235
28251
|
}
|
|
28236
28252
|
scanJsxIdentifier();
|
|
28237
28253
|
var pos = getNodePos();
|
|
28238
|
-
return finishNode(factory.createJsxAttribute(parseIdentifierName(),
|
|
28239
|
-
|
|
28240
|
-
|
|
28254
|
+
return finishNode(factory.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);
|
|
28255
|
+
}
|
|
28256
|
+
function parseJsxAttributeValue() {
|
|
28257
|
+
if (token() === 63) {
|
|
28258
|
+
if (scanJsxAttributeValue() === 10) {
|
|
28259
|
+
return parseLiteralNode();
|
|
28260
|
+
}
|
|
28261
|
+
if (token() === 18) {
|
|
28262
|
+
return parseJsxExpression(true);
|
|
28263
|
+
}
|
|
28264
|
+
if (token() === 29) {
|
|
28265
|
+
return parseJsxElementOrSelfClosingElementOrFragment(true);
|
|
28266
|
+
}
|
|
28267
|
+
parseErrorAtCurrentToken(ts.Diagnostics.or_JSX_element_expected);
|
|
28268
|
+
}
|
|
28269
|
+
return undefined;
|
|
28241
28270
|
}
|
|
28242
28271
|
function parseJsxSpreadAttribute() {
|
|
28243
28272
|
var pos = getNodePos();
|
|
@@ -42296,8 +42325,9 @@ var ts;
|
|
|
42296
42325
|
function getExportSymbolOfValueSymbolIfExported(symbol) {
|
|
42297
42326
|
return getMergedSymbol(symbol && (symbol.flags & 1048576) !== 0 && symbol.exportSymbol || symbol);
|
|
42298
42327
|
}
|
|
42299
|
-
function symbolIsValue(symbol) {
|
|
42300
|
-
return !!(symbol.flags & 111551 ||
|
|
42328
|
+
function symbolIsValue(symbol, includeTypeOnlyMembers) {
|
|
42329
|
+
return !!(symbol.flags & 111551 ||
|
|
42330
|
+
symbol.flags & 2097152 && resolveAlias(symbol).flags & 111551 && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
|
|
42301
42331
|
}
|
|
42302
42332
|
function findConstructorDeclaration(node) {
|
|
42303
42333
|
var members = node.members;
|
|
@@ -48933,12 +48963,12 @@ var ts;
|
|
|
48933
48963
|
}
|
|
48934
48964
|
return errorInfo;
|
|
48935
48965
|
}
|
|
48936
|
-
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment) {
|
|
48966
|
+
function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
|
|
48937
48967
|
type = getReducedApparentType(type);
|
|
48938
48968
|
if (type.flags & 524288) {
|
|
48939
48969
|
var resolved = resolveStructuredTypeMembers(type);
|
|
48940
48970
|
var symbol = resolved.members.get(name);
|
|
48941
|
-
if (symbol && symbolIsValue(symbol)) {
|
|
48971
|
+
if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
|
|
48942
48972
|
return symbol;
|
|
48943
48973
|
}
|
|
48944
48974
|
if (skipObjectFunctionPropertyAugment)
|
|
@@ -51923,7 +51953,7 @@ var ts;
|
|
|
51923
51953
|
var meaning = nameStack.length ? 1920 : targetMeaning;
|
|
51924
51954
|
var mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));
|
|
51925
51955
|
var next = node.isTypeOf
|
|
51926
|
-
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)
|
|
51956
|
+
? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, false, true)
|
|
51927
51957
|
: getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);
|
|
51928
51958
|
if (!next) {
|
|
51929
51959
|
error(current, ts.Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), ts.declarationNameToString(current));
|
|
@@ -62178,9 +62208,8 @@ var ts;
|
|
|
62178
62208
|
markAliasReferenced(parentSymbol, node);
|
|
62179
62209
|
}
|
|
62180
62210
|
return isErrorType(apparentType) ? errorType : apparentType;
|
|
62181
|
-
;
|
|
62182
62211
|
}
|
|
62183
|
-
prop = getPropertyOfType(apparentType, right.escapedText);
|
|
62212
|
+
prop = getPropertyOfType(apparentType, right.escapedText, false, node.kind === 161);
|
|
62184
62213
|
}
|
|
62185
62214
|
if (ts.isIdentifier(left) && parentSymbol && (compilerOptions.isolatedModules ||
|
|
62186
62215
|
!(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 && node.parent.kind === 299)) ||
|
|
@@ -66085,6 +66114,10 @@ var ts;
|
|
|
66085
66114
|
case 35:
|
|
66086
66115
|
case 36:
|
|
66087
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
|
+
}
|
|
66088
66121
|
reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
|
|
66089
66122
|
return booleanType;
|
|
66090
66123
|
case 102:
|
|
@@ -67245,6 +67278,9 @@ var ts;
|
|
|
67245
67278
|
function checkMethodDeclaration(node) {
|
|
67246
67279
|
if (!checkGrammarMethod(node))
|
|
67247
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
|
+
}
|
|
67248
67284
|
checkFunctionOrMethodDeclaration(node);
|
|
67249
67285
|
if (ts.hasSyntacticModifier(node, 128) && node.kind === 169 && node.body) {
|
|
67250
67286
|
error(node, ts.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, ts.declarationNameToString(node.name));
|
|
@@ -67350,6 +67386,9 @@ var ts;
|
|
|
67350
67386
|
return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
|
|
67351
67387
|
}
|
|
67352
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
|
+
}
|
|
67353
67392
|
addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
|
|
67354
67393
|
checkSourceElement(node.body);
|
|
67355
67394
|
setNodeLinksForPrivateIdentifierScope(node);
|
|
@@ -81709,20 +81748,27 @@ var ts;
|
|
|
81709
81748
|
if (node === undefined) {
|
|
81710
81749
|
return factory.createTrue();
|
|
81711
81750
|
}
|
|
81712
|
-
|
|
81751
|
+
if (node.kind === 10) {
|
|
81713
81752
|
var singleQuote = node.singleQuote !== undefined ? node.singleQuote : !ts.isStringDoubleQuoted(node, currentSourceFile);
|
|
81714
81753
|
var literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);
|
|
81715
81754
|
return ts.setTextRange(literal, node);
|
|
81716
81755
|
}
|
|
81717
|
-
|
|
81756
|
+
if (node.kind === 288) {
|
|
81718
81757
|
if (node.expression === undefined) {
|
|
81719
81758
|
return factory.createTrue();
|
|
81720
81759
|
}
|
|
81721
81760
|
return ts.visitNode(node.expression, visitor, ts.isExpression);
|
|
81722
81761
|
}
|
|
81723
|
-
|
|
81724
|
-
return
|
|
81762
|
+
if (ts.isJsxElement(node)) {
|
|
81763
|
+
return visitJsxElement(node, false);
|
|
81764
|
+
}
|
|
81765
|
+
if (ts.isJsxSelfClosingElement(node)) {
|
|
81766
|
+
return visitJsxSelfClosingElement(node, false);
|
|
81767
|
+
}
|
|
81768
|
+
if (ts.isJsxFragment(node)) {
|
|
81769
|
+
return visitJsxFragment(node, false);
|
|
81725
81770
|
}
|
|
81771
|
+
return ts.Debug.failBadSyntaxKind(node);
|
|
81726
81772
|
}
|
|
81727
81773
|
function visitJsxText(node) {
|
|
81728
81774
|
var fixed = fixupWhitespaceAndDecodeEntities(node.text);
|
|
@@ -96050,6 +96096,8 @@ var ts;
|
|
|
96050
96096
|
ts.Diagnostics.extends_clause_already_seen.code,
|
|
96051
96097
|
ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
|
|
96052
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,
|
|
96053
96101
|
]);
|
|
96054
96102
|
function shouldProgramCreateNewSourceFiles(program, newOptions) {
|
|
96055
96103
|
if (!program)
|
|
@@ -101684,6 +101732,13 @@ var ts;
|
|
|
101684
101732
|
ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
|
|
101685
101733
|
WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
|
|
101686
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",
|
|
101687
101742
|
};
|
|
101688
101743
|
function createWatchFactory(host, options) {
|
|
101689
101744
|
var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
|