typescript 4.7.0-dev.20220304 → 4.7.0-dev.20220307
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 +3 -0
- package/lib/de/diagnosticMessages.generated.json +3 -0
- package/lib/es/diagnosticMessages.generated.json +3 -0
- package/lib/fr/diagnosticMessages.generated.json +3 -0
- package/lib/it/diagnosticMessages.generated.json +3 -0
- package/lib/ja/diagnosticMessages.generated.json +3 -0
- package/lib/ko/diagnosticMessages.generated.json +3 -0
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +3 -0
- package/lib/pt-br/diagnosticMessages.generated.json +3 -0
- package/lib/ru/diagnosticMessages.generated.json +3 -0
- package/lib/tr/diagnosticMessages.generated.json +3 -0
- package/lib/tsc.js +123 -31
- package/lib/tsserver.js +128 -34
- package/lib/tsserverlibrary.js +128 -34
- package/lib/typescript.js +128 -34
- package/lib/typescriptServices.js +128 -34
- package/lib/typingsInstaller.js +124 -32
- package/lib/zh-cn/diagnosticMessages.generated.json +3 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +3 -0
- package/package.json +1 -1
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Proměnné klauzule catch zapište jako „unknown“ namísto „any“.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Soubory deklarace typu, které se mají zahrnout do kompilace",
|
|
1541
1541
|
"Type_expected_1110": "Očekával se typ.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Kontrolní výrazy importu typů by měly mít přesně jeden klíč – resolution-mode – s hodnotou import nebo require.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Vytvoření instance typu je příliš hluboké a může být nekonečné.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Typ se přímo nebo nepřímo odkazuje ve zpětném volání jeho vlastní metody then při splnění.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Knihovna typů, na kterou se odkazuje přes {0} ze souboru {1}",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modifikátor readonly se může objevit jenom v deklaraci vlastnosti nebo signatuře indexu.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modifikátor typu readonly se povoluje jen pro typy literálů pole a řazené kolekce členů.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "Volání require se dá převést na import.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "resolution-mode se dá nastavit pouze pro importy type-only.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "resolution-mode je jediný platný klíč pro kontrolní výrazy importu typů.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "resolution-mode by měl být buď require, nebo import.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Je nastavená možnost rootDirs, použije se k překladu relativního názvu modulu {0}.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "Na vlastnost super se dá odkazovat jenom v odvozené třídě.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Geben Sie Variablen der catch-Klauseln als \"unknown\" anstelle von \"any\" ein.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Typdeklarationsdateien, die in die Kompilierung eingeschlossen werden sollen.",
|
|
1541
1541
|
"Type_expected_1110": "Es wurde ein Typ erwartet.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Typimportassertionen sollten über genau einen Schlüssel verfügen – „resolution-mode“ – mit dem Wert „import“ oder „require“.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Die Typinstanziierung ist übermäßig tief und möglicherweise unendlich.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Auf den Typ wird direkt oder indirekt im Erfüllungsrückruf der eigenen \"then\"-Methode verwiesen.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Typbibliothek, die über \"{0}\" aus der Datei \"{1}\" referenziert wird",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Der Modifizierer \"readonly\" darf nur für eine Eigenschaftendeklaration oder Indexsignatur verwendet werden.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Der Typmodifizierer \"readonly\" ist nur für Array- und Tupelliteraltypen zulässig.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "Der Aufruf von \"require\" kann in einen Aufruf von \"import\" konvertiert werden.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "„resolution-mode“ kann nur für reine Typenimporte festgelegt werden.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "„resolution-mode“ ist für Typimportassertionen der einzige gültige Schlüssel.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "„resolution-mode“ muss entweder auf „require“ oder „import“ festgelegt sein.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Die Option \"rootDirs\" wurde festgelegt. Sie wird zum Auflösen des relativen Modulnamens \"{0}\" verwendet.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "Auf \"super\" kann nur in einer abgeleiteten Klasse verwiesen werden.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Escriba las variables de la cláusula catch como 'unknown' en lugar de 'any'.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Archivos de declaración de tipos que se incluirán en la compilación.",
|
|
1541
1541
|
"Type_expected_1110": "Se esperaba un tipo.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Las aserciones de importación de tipos deben tener exactamente una clave - \"resolution-mode\" - con el valor \"import\" o \"require\".",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creación de una instancia de tipo es excesivamente profunda y posiblemente infinita.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Se hace referencia al tipo directa o indirectamente en la devolución de llamada de entrega de su propio método \"then\".",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Biblioteca de tipos a la que se hace referencia mediante \"{0}\" desde el archivo \"{1}\"",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "El modificador 'readonly' solo puede aparecer en una declaración de propiedad o una signatura de índice.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "El modificador de tipo \"readonly\" solo se permite en los tipos literales de matriz y de tupla.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "La llamada a \"require\" puede convertirse en una importación.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "\"resolution-mode\" solo se puede establecer para importaciones solamente de tipo.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" es la única clave válida para las aserciones de importación de tipos.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "\"modo de resolución\" debe ser \"requerir\" o \"importar\".",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Se ha establecido la opción \"rootDirs\". Se usará para resolver el nombre de módulo relativo \"{0}\".",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "Solo se puede hacer referencia a \"super\" en una clase derivada.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Tapez les variables de clause catch comme « inconnu » au lieu de « tout ».",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Fichiers de déclaration de type à inclure dans la compilation.",
|
|
1541
1541
|
"Type_expected_1110": "Type attendu.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Les assertions d’importation de type doivent avoir exactement une clé ( « mode résolution » ) avec la valeur « import » ou « require ».",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "L'instanciation de type est trop profonde et éventuellement infinie.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Le type est directement ou indirectement référencé dans le rappel d'exécution de sa propre méthode 'then'.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Bibliothèque de types référencée via '{0}' à partir du fichier '{1}'",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Le modificateur 'readonly' peut apparaître uniquement dans une déclaration de propriété ou une signature d'index.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Le modificateur de type 'readonly' est uniquement autorisé sur les types littéraux de tableau et de tuple.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "L'appel de 'require' peut être converti en import.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "« mode résolution » ne peut être défini que pour les importations de type uniquement.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "« mode résolution » est la seule clé valide pour les assertions d’importation de type.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' doit être 'require' ou 'import'.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'option 'rootDirs' est définie. Utilisation de celle-ci pour la résolution du nom de module relatif '{0}'.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "'super' ne peut être référencé que dans une classe dérivée.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Digitare le variabili di clausola catch come \"unknown\" invece di \"any\".",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "File della dichiarazione di tipo da includere nella compilazione.",
|
|
1541
1541
|
"Type_expected_1110": "È previsto il tipo.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "L’importazione dei tipi di asserzione deve contenere esattamente una chiave, 'resolution-mode', con valore 'import' o 'require'.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creazione di un'istanza di tipo presenta troppi livelli ed è probabilmente infinita.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Il tipo viene usato come riferimento diretto o indiretto nel callback di fulfillment del relativo metodo 'then'.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Libreria dei tipi a cui viene fatto riferimento tramite '{0}' dal file '{1}'",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Il modificatore 'readonly' può essere incluso solo in una dichiarazione di proprietà o una firma dell'indice.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Il modificatore di tipo 'readonly' è consentito solo in tipi di valore letterale matrice e tupla.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "La chiamata a 'require' può essere convertita in un'importazione.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode' può essere impostata solo per le importazioni di tipo.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode' è l'unica chiave valida per l’importazione dei tipi di asserzioni.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' deve essere 'require' o 'import'.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'opzione 'rootDirs' è impostata e verrà usata per risolvere il nome del modulo relativo '{0}'.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "È possibile fare riferimento a 'super' solo in una classe derivata.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "catch 句の変数を '任意' ではなく '不明' として入力してください。",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "コンパイルに含む型宣言ファイル。",
|
|
1541
1541
|
"Type_expected_1110": "型が必要です。",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "型インポート アサーションには、キー `resolution-mode` が 1 つだけ必要です。値は `import` または `require` です。",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "型のインスタンス化は非常に深く、無限である可能性があります。",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "型は、それ自身の 'then' メソッドのフルフィルメント コールバック内で直接または間接的に参照されます。",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "ファイル '{1}' から '{0}' を介して参照されたタイプ ライブラリ",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾子はプロパティ宣言またはインデックス シグネチャのみに使用できます。",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 型の修飾子は、配列およびタプル リテラル型でのみ使用できます。",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "'require' の呼び出しはインポートに変換される可能性があります。",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` は、型のみのインポートに対してのみ設定できます。",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode` は、型インポート アサーションの唯一の有効なキーです。",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "\"resolution-mode\" は \"require\" または \"import\" のいずれかにする必要があります。",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' オプションが設定され、このオプションを使用して相対モジュール名 '{0}' を解決します。",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "'super' は、派生クラスでのみ参照できます。",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "catch 절 변수를 'any' 대신 'unknown'으로 입력하세요.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "컴파일에 포함할 선언 파일을 입력하세요.",
|
|
1541
1541
|
"Type_expected_1110": "형식이 필요합니다.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "유형 가져오기 어설션에는 값이 '가져오기' 또는 '요구'인 정확히 하나의 키('resolution-mode')가 있어야 합니다.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "형식 인스턴스화는 깊이가 매우 깊으며 무한할 수도 있습니다.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "형식은 자체 'then' 메서드의 처리 콜백에서 직간접적으로 참조됩니다.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "'{1}' 파일에서 '{0}'을(를) 통해 형식 라이브러리가 참조되었습니다.",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 한정자는 속성 선언 또는 인덱스 시그니처에만 나타날 수 있습니다.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 형식 한정자는 배열 및 튜플 리터럴 형식에서만 사용할 수 있습니다.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "'require' 호출이 가져오기로 변환될 수 있습니다.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode'는 유형 전용 가져오기에만 설정할 수 있습니다.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode'는 유형 가져오기 어설션에 유효한 유일한 키입니다.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "'해상도 모드'는 '요구' 또는 '가져오기'여야 합니다.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 옵션이 설정되어 있습니다. 상대 모듈 이름 '{0}'을(를) 확인하려면 이 옵션을 사용합니다.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "파생 클래스에서만 'super'를 참조할 수 있습니다.",
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -308,7 +308,7 @@ declare namespace Intl {
|
|
|
308
308
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
|
309
309
|
*/
|
|
310
310
|
const Locale: {
|
|
311
|
-
new (tag
|
|
311
|
+
new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
|
|
312
312
|
};
|
|
313
313
|
|
|
314
314
|
interface DisplayNamesOptions {
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Wpisz zmienne klauzuli catch jako \"unknown\" zamiast \"any\".",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Pliki deklaracji typu do uwzględnienia w kompilacji.",
|
|
1541
1541
|
"Type_expected_1110": "Oczekiwano typu.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Twierdzenie importu typu powinno mieć dokładnie jeden klucz – „resolution-mode“ – z wartością „importuj“ lub „wymagaj“.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Tworzenie wystąpienia typu jest nadmiernie szczegółowe i prawdopodobnie nieskończone.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Typ jest przywoływany bezpośrednio lub pośrednio w wywołaniu zwrotnym realizacji jego własnej metody „then”.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Biblioteka typów jest przywoływana za pośrednictwem elementu „{0}” z pliku „{1}”",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modyfikator „readonly” może występować jedynie w deklaracji właściwości lub sygnaturze indeksu.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modyfikator typu „readonly” jest dozwolony tylko w typach literału tablicy i krotki.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "Wywołanie „require” może zostać przekonwertowane na wywołanie import.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "Element „resolution-mode“ można ustawić wyłącznie dla importów tylko typów.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "Element „resolution-mode“ jest jedynym prawidłowym kluczem dla twierdzenia importu typu.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "Element „resolution-mode” powinien mieć wartość „require” lub „import”.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Opcja „rootDirs” została ustawiona. Zostanie ona użyta do rozpoznania względnej nazwy modułu „{0}”.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "Element „super” może być przywoływany tylko w klasie pochodnej.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Digite as variáveis da cláusula catch como 'desconhecido' em vez de 'qualquer'.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Arquivos de declaração de tipo a serem incluídos em compilação.",
|
|
1541
1541
|
"Type_expected_1110": "Tipo esperado.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "As asserções de importação de tipo devem ter exatamente uma chave - `resolution-mode` - com valor `import` ou` require`.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "A instanciação de tipo é muito profunda e possivelmente infinita.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "O tipo é referenciado diretamente ou indiretamente em um retorno de chamada de preenchimento do seu próprio método 'then'.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Biblioteca de tipos referenciada via '{0}' do arquivo '{1}'",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "O modificador 'readonly' pode aparecer somente em uma declaração de propriedade ou assinatura de índice.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "O modificador de tipo 'readonly' só é permitido em tipos literais de matriz e tupla.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "A chamada 'require' pode ser convertida em uma importação.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` pode ser definido apenas para importações somente de tipo.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode` é a única chave válida para as asserções de importação de tipo.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' deve ser 'require' ou 'import'.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "A opção 'rootDirs' está configurada, usando-a para resolver o nome de módulo relativo '{0}'.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "'super' só pode ser referenciado em uma classe derivada.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Введите предложение catch как \"unknown\" вместо \"any\".",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Файлы объявления типа, включаемые в компиляцию.",
|
|
1541
1541
|
"Type_expected_1110": "Ожидался тип.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Утверждения импорта типа должны иметь ровно один ключ \"resolution-mode\" со значением \"import\" или \"require\".",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Создание экземпляра типа является слишком глубоким и, возможно, бесконечным.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "На тип есть прямые или непрямые ссылки в обратном вызове выполнения собственного метода then.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "Библиотека типов, на которую осуществляется ссылка с помощью \"{0}\" из файла \"{1}\"",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Модификатор readonly может отображаться только в объявлении свойства или сигнатуре индекса.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Модификатор типа \"readonly\" допускается только для типов литерала массива и кортежа.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "Вызов \"require\" можно преобразовать в \"import\".",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "\"resolution-mode\" можно задать лишь для импорта, распространяющегося только на тип.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" является единственным допустимым ключом для утверждений импорта типа.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "\"resolution-mode\" должен иметь значение \"require\" или \"import\".",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Параметр \"rootDirs\" задан; он используется для разрешения относительного имени модуля \"{0}\".",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "Ссылка на super может указываться только в производном классе.",
|
|
@@ -1539,6 +1539,7 @@
|
|
|
1539
1539
|
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "Catch yan tümcesi değişkenlerini 'any' yerine 'unknown' olarak yazın.",
|
|
1540
1540
|
"Type_declaration_files_to_be_included_in_compilation_6124": "Derlemeye eklenecek tür bildirim dosyaları.",
|
|
1541
1541
|
"Type_expected_1110": "Tür bekleniyor.",
|
|
1542
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Tür içe aktarma iddiaları, `import` veya `require`. değerine sahip tam olarak bir anahtara - `resolution-mode`’na sahip olmalıdır.",
|
|
1542
1543
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Tür örneği oluşturma işlemi, fazla ayrıntılı ve büyük olasılıkla sınırsız.",
|
|
1543
1544
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Türe, kendi 'then' metodunun tamamlama geri aramasında doğrudan veya dolaylı olarak başvuruluyor.",
|
|
1544
1545
|
"Type_library_referenced_via_0_from_file_1_1402": "'{1}' dosyasından '{0}' aracılığıyla başvurulan tür kitaplığı",
|
|
@@ -1781,6 +1782,8 @@
|
|
|
1781
1782
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' değiştiricisi yalnızca özellik bildiriminde ya da dizin imzasında görünebilir.",
|
|
1782
1783
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' tür değiştiricisine yalnızca dizide ve demet sabit değeri türlerinde izin verilir.",
|
|
1783
1784
|
"require_call_may_be_converted_to_an_import_80005": "'require' çağrısı bir import olarak dönüştürülebilir.",
|
|
1785
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` yalnızca tür içeri aktarmaları için ayarlanabilir.",
|
|
1786
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode`, tür içe aktarma iddiaları için tek geçerli anahtardır.",
|
|
1784
1787
|
"resolution_mode_should_be_either_require_or_import_1453": "`resolution-mode`, `require` ya da `import` olmalıdır.",
|
|
1785
1788
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' seçeneği ayarlandı, '{0}' göreli modül adını çözümlemek için bu değer kullanılıyor.",
|
|
1786
1789
|
"super_can_only_be_referenced_in_a_derived_class_2335": "'super' öğesine yalnızca bir türetilmiş sınıfta başvurulabilir.",
|
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.7";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220307";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -31833,7 +31833,8 @@ var ts;
|
|
|
31833
31833
|
name: "jsxFragmentFactory",
|
|
31834
31834
|
type: "string",
|
|
31835
31835
|
category: ts.Diagnostics.Language_and_Environment,
|
|
31836
|
-
description: ts.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment
|
|
31836
|
+
description: ts.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,
|
|
31837
|
+
defaultValueDescription: "React.Fragment",
|
|
31837
31838
|
},
|
|
31838
31839
|
{
|
|
31839
31840
|
name: "jsxImportSource",
|
|
@@ -36235,7 +36236,7 @@ var ts;
|
|
|
36235
36236
|
return ts.isDottedName(expr)
|
|
36236
36237
|
|| (ts.isPropertyAccessExpression(expr) || ts.isNonNullExpression(expr) || ts.isParenthesizedExpression(expr)) && isNarrowableReference(expr.expression)
|
|
36237
36238
|
|| ts.isBinaryExpression(expr) && expr.operatorToken.kind === 27 && isNarrowableReference(expr.right)
|
|
36238
|
-
|| ts.isElementAccessExpression(expr) && ts.isStringOrNumericLiteralLike(expr.argumentExpression) && isNarrowableReference(expr.expression)
|
|
36239
|
+
|| ts.isElementAccessExpression(expr) && (ts.isStringOrNumericLiteralLike(expr.argumentExpression) || ts.isEntityNameExpression(expr.argumentExpression)) && isNarrowableReference(expr.expression)
|
|
36239
36240
|
|| ts.isAssignmentExpression(expr) && isNarrowableReference(expr.left);
|
|
36240
36241
|
}
|
|
36241
36242
|
function containsNarrowableReference(expr) {
|
|
@@ -43367,7 +43368,15 @@ var ts;
|
|
|
43367
43368
|
});
|
|
43368
43369
|
}
|
|
43369
43370
|
}
|
|
43370
|
-
if (
|
|
43371
|
+
if (symbolName === undefined) {
|
|
43372
|
+
var name = ts.firstDefined(symbol.declarations, ts.getNameOfDeclaration);
|
|
43373
|
+
if (name && ts.isComputedPropertyName(name) && ts.isEntityName(name.expression)) {
|
|
43374
|
+
var LHS = createAccessFromSymbolChain(chain, index - 1, stopper);
|
|
43375
|
+
if (ts.isEntityName(LHS)) {
|
|
43376
|
+
return ts.factory.createIndexedAccessTypeNode(ts.factory.createParenthesizedType(ts.factory.createTypeQueryNode(LHS)), ts.factory.createTypeQueryNode(name.expression));
|
|
43377
|
+
}
|
|
43378
|
+
return LHS;
|
|
43379
|
+
}
|
|
43371
43380
|
symbolName = getNameOfSymbolAsWritten(symbol, context);
|
|
43372
43381
|
}
|
|
43373
43382
|
context.approximateLength += symbolName.length + 1;
|
|
@@ -54391,7 +54400,7 @@ var ts;
|
|
|
54391
54400
|
var requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType(source) && !isEmptyArrayLiteralType(source) && !isTupleType(source);
|
|
54392
54401
|
var unmatchedProperty = getUnmatchedProperty(source, target, requireOptionalProperties, false);
|
|
54393
54402
|
if (unmatchedProperty) {
|
|
54394
|
-
if (reportErrors) {
|
|
54403
|
+
if (reportErrors && shouldReportUnmatchedPropertyError(source, target)) {
|
|
54395
54404
|
reportUnmatchedProperty(source, target, unmatchedProperty, requireOptionalProperties);
|
|
54396
54405
|
}
|
|
54397
54406
|
return 0;
|
|
@@ -54531,6 +54540,19 @@ var ts;
|
|
|
54531
54540
|
}
|
|
54532
54541
|
return result;
|
|
54533
54542
|
}
|
|
54543
|
+
function shouldReportUnmatchedPropertyError(source, target) {
|
|
54544
|
+
var typeCallSignatures = getSignaturesOfStructuredType(source, 0);
|
|
54545
|
+
var typeConstructSignatures = getSignaturesOfStructuredType(source, 1);
|
|
54546
|
+
var typeProperties = getPropertiesOfObjectType(source);
|
|
54547
|
+
if ((typeCallSignatures.length || typeConstructSignatures.length) && !typeProperties.length) {
|
|
54548
|
+
if ((getSignaturesOfType(target, 0).length && typeCallSignatures.length) ||
|
|
54549
|
+
(getSignaturesOfType(target, 1).length && typeConstructSignatures.length)) {
|
|
54550
|
+
return true;
|
|
54551
|
+
}
|
|
54552
|
+
return false;
|
|
54553
|
+
}
|
|
54554
|
+
return true;
|
|
54555
|
+
}
|
|
54534
54556
|
function reportIncompatibleCallSignatureReturn(siga, sigb) {
|
|
54535
54557
|
if (siga.parameters.length === 0 && sigb.parameters.length === 0) {
|
|
54536
54558
|
return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); };
|
|
@@ -56757,8 +56779,9 @@ var ts;
|
|
|
56757
56779
|
return isMatchingReference(source.expression, target);
|
|
56758
56780
|
case 205:
|
|
56759
56781
|
case 206:
|
|
56760
|
-
|
|
56761
|
-
|
|
56782
|
+
var sourcePropertyName = getAccessedPropertyName(source);
|
|
56783
|
+
var targetPropertyName = ts.isAccessExpression(target) ? getAccessedPropertyName(target) : undefined;
|
|
56784
|
+
return sourcePropertyName !== undefined && targetPropertyName !== undefined && targetPropertyName === sourcePropertyName &&
|
|
56762
56785
|
isMatchingReference(source.expression, target.expression);
|
|
56763
56786
|
case 160:
|
|
56764
56787
|
return ts.isAccessExpression(target) &&
|
|
@@ -56770,12 +56793,49 @@ var ts;
|
|
|
56770
56793
|
return false;
|
|
56771
56794
|
}
|
|
56772
56795
|
function getAccessedPropertyName(access) {
|
|
56773
|
-
|
|
56774
|
-
|
|
56775
|
-
|
|
56776
|
-
|
|
56777
|
-
|
|
56778
|
-
|
|
56796
|
+
if (ts.isPropertyAccessExpression(access)) {
|
|
56797
|
+
return access.name.escapedText;
|
|
56798
|
+
}
|
|
56799
|
+
if (ts.isElementAccessExpression(access)) {
|
|
56800
|
+
return tryGetElementAccessExpressionName(access);
|
|
56801
|
+
}
|
|
56802
|
+
if (ts.isBindingElement(access)) {
|
|
56803
|
+
var name = getDestructuringPropertyName(access);
|
|
56804
|
+
return name ? ts.escapeLeadingUnderscores(name) : undefined;
|
|
56805
|
+
}
|
|
56806
|
+
if (ts.isParameter(access)) {
|
|
56807
|
+
return ("" + access.parent.parameters.indexOf(access));
|
|
56808
|
+
}
|
|
56809
|
+
return undefined;
|
|
56810
|
+
}
|
|
56811
|
+
function tryGetNameFromType(type) {
|
|
56812
|
+
return type.flags & 8192 ? type.escapedName :
|
|
56813
|
+
type.flags & 384 ? ts.escapeLeadingUnderscores("" + type.value) : undefined;
|
|
56814
|
+
}
|
|
56815
|
+
function tryGetElementAccessExpressionName(node) {
|
|
56816
|
+
if (ts.isStringOrNumericLiteralLike(node.argumentExpression)) {
|
|
56817
|
+
return ts.escapeLeadingUnderscores(node.argumentExpression.text);
|
|
56818
|
+
}
|
|
56819
|
+
if (ts.isEntityNameExpression(node.argumentExpression)) {
|
|
56820
|
+
var symbol = resolveEntityName(node.argumentExpression, 111551, true);
|
|
56821
|
+
if (!symbol || !isConstVariable(symbol))
|
|
56822
|
+
return undefined;
|
|
56823
|
+
var declaration = symbol.valueDeclaration;
|
|
56824
|
+
if (declaration === undefined)
|
|
56825
|
+
return undefined;
|
|
56826
|
+
var type = tryGetTypeFromEffectiveTypeNode(declaration);
|
|
56827
|
+
if (type) {
|
|
56828
|
+
var name = tryGetNameFromType(type);
|
|
56829
|
+
if (name !== undefined) {
|
|
56830
|
+
return name;
|
|
56831
|
+
}
|
|
56832
|
+
}
|
|
56833
|
+
if (ts.hasOnlyExpressionInitializer(declaration)) {
|
|
56834
|
+
var initializer = ts.getEffectiveInitializer(declaration);
|
|
56835
|
+
return initializer && tryGetNameFromType(getTypeOfExpression(initializer));
|
|
56836
|
+
}
|
|
56837
|
+
}
|
|
56838
|
+
return undefined;
|
|
56779
56839
|
}
|
|
56780
56840
|
function containsMatchingReference(source, target) {
|
|
56781
56841
|
while (ts.isAccessExpression(source)) {
|
|
@@ -59758,11 +59818,21 @@ var ts;
|
|
|
59758
59818
|
}
|
|
59759
59819
|
return false;
|
|
59760
59820
|
}
|
|
59821
|
+
function uniqueStrings(strings) {
|
|
59822
|
+
var unique = new ts.Set(strings);
|
|
59823
|
+
var result = [];
|
|
59824
|
+
unique.forEach(function (str) { return result.push(str); });
|
|
59825
|
+
return result;
|
|
59826
|
+
}
|
|
59761
59827
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
59762
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 295 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.
|
|
59828
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 295 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(uniqueStrings(ts.flatMap(contextualType.types, function (memberType) {
|
|
59829
|
+
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return s.escapedName; });
|
|
59830
|
+
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
59763
59831
|
}
|
|
59764
59832
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
59765
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 284 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer)); }), function (prop) { return [!prop.initializer ? (function () { return trueType; }) : (function () { return getContextFreeTypeOfExpression(prop.initializer); }), prop.symbol.escapedName]; }), ts.map(ts.
|
|
59833
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 284 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer)); }), function (prop) { return [!prop.initializer ? (function () { return trueType; }) : (function () { return getContextFreeTypeOfExpression(prop.initializer); }), prop.symbol.escapedName]; }), ts.map(uniqueStrings(ts.flatMap(contextualType.types, function (memberType) {
|
|
59834
|
+
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return s.escapedName; });
|
|
59835
|
+
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
59766
59836
|
}
|
|
59767
59837
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
59768
59838
|
var contextualType = ts.isObjectLiteralMethod(node) ?
|
|
@@ -61002,18 +61072,17 @@ var ts;
|
|
|
61002
61072
|
}
|
|
61003
61073
|
var enclosingClass = forEachEnclosingClass(location, function (enclosingDeclaration) {
|
|
61004
61074
|
var enclosingClass = getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingDeclaration));
|
|
61005
|
-
return isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing)
|
|
61075
|
+
return isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing);
|
|
61006
61076
|
});
|
|
61007
61077
|
if (!enclosingClass) {
|
|
61008
|
-
|
|
61009
|
-
|
|
61078
|
+
enclosingClass = getEnclosingClassFromThisParameter(location);
|
|
61079
|
+
enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing);
|
|
61080
|
+
if (flags & 32 || !enclosingClass) {
|
|
61010
61081
|
if (errorNode) {
|
|
61011
61082
|
error(errorNode, ts.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || containingType));
|
|
61012
61083
|
}
|
|
61013
61084
|
return false;
|
|
61014
61085
|
}
|
|
61015
|
-
var thisType = getTypeFromTypeNode(thisParameter.type);
|
|
61016
|
-
enclosingClass = ((thisType.flags & 262144) ? getConstraintOfTypeParameter(thisType) : thisType).target;
|
|
61017
61086
|
}
|
|
61018
61087
|
if (flags & 32) {
|
|
61019
61088
|
return true;
|
|
@@ -61029,6 +61098,17 @@ var ts;
|
|
|
61029
61098
|
}
|
|
61030
61099
|
return true;
|
|
61031
61100
|
}
|
|
61101
|
+
function getEnclosingClassFromThisParameter(node) {
|
|
61102
|
+
var thisParameter = getThisParameterFromNodeContext(node);
|
|
61103
|
+
var thisType = (thisParameter === null || thisParameter === void 0 ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type);
|
|
61104
|
+
if (thisType && thisType.flags & 262144) {
|
|
61105
|
+
thisType = getConstraintOfTypeParameter(thisType);
|
|
61106
|
+
}
|
|
61107
|
+
if (thisType && ts.getObjectFlags(thisType) & (3 | 4)) {
|
|
61108
|
+
return getTargetType(thisType);
|
|
61109
|
+
}
|
|
61110
|
+
return undefined;
|
|
61111
|
+
}
|
|
61032
61112
|
function getThisParameterFromNodeContext(node) {
|
|
61033
61113
|
var thisContainer = ts.getThisContainer(node, false);
|
|
61034
61114
|
return thisContainer && ts.isFunctionLike(thisContainer) ? ts.getThisParameter(thisContainer) : undefined;
|
|
@@ -62816,7 +62896,7 @@ var ts;
|
|
|
62816
62896
|
if (!isConstructorAccessible(node, constructSignatures[0])) {
|
|
62817
62897
|
return resolveErrorCall(node);
|
|
62818
62898
|
}
|
|
62819
|
-
if (constructSignatures
|
|
62899
|
+
if (someSignature(constructSignatures, function (signature) { return !!(signature.flags & 4); })) {
|
|
62820
62900
|
error(node, ts.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);
|
|
62821
62901
|
return resolveErrorCall(node);
|
|
62822
62902
|
}
|
|
@@ -62843,6 +62923,12 @@ var ts;
|
|
|
62843
62923
|
invocationError(node.expression, expressionType, 1);
|
|
62844
62924
|
return resolveErrorCall(node);
|
|
62845
62925
|
}
|
|
62926
|
+
function someSignature(signatures, f) {
|
|
62927
|
+
if (ts.isArray(signatures)) {
|
|
62928
|
+
return ts.some(signatures, function (signature) { return someSignature(signature, f); });
|
|
62929
|
+
}
|
|
62930
|
+
return signatures.compositeKind === 1048576 ? ts.some(signatures.compositeSignatures, f) : f(signatures);
|
|
62931
|
+
}
|
|
62846
62932
|
function typeHasProtectedAccessibleBase(target, type) {
|
|
62847
62933
|
var baseTypes = getBaseTypes(type);
|
|
62848
62934
|
if (!ts.length(baseTypes)) {
|
|
@@ -64499,7 +64585,7 @@ var ts;
|
|
|
64499
64585
|
case 40:
|
|
64500
64586
|
case 54:
|
|
64501
64587
|
checkNonNullType(operandType, node.operand);
|
|
64502
|
-
if (
|
|
64588
|
+
if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288)) {
|
|
64503
64589
|
error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator));
|
|
64504
64590
|
}
|
|
64505
64591
|
if (node.operator === 39) {
|
|
@@ -64544,6 +64630,13 @@ var ts;
|
|
|
64544
64630
|
}
|
|
64545
64631
|
return numberType;
|
|
64546
64632
|
}
|
|
64633
|
+
function maybeTypeOfKindConsideringBaseConstraint(type, kind) {
|
|
64634
|
+
if (maybeTypeOfKind(type, kind)) {
|
|
64635
|
+
return true;
|
|
64636
|
+
}
|
|
64637
|
+
var baseConstraint = getBaseConstraintOrType(type);
|
|
64638
|
+
return !!baseConstraint && maybeTypeOfKind(baseConstraint, kind);
|
|
64639
|
+
}
|
|
64547
64640
|
function maybeTypeOfKind(type, kind) {
|
|
64548
64641
|
if (type.flags & kind) {
|
|
64549
64642
|
return true;
|
|
@@ -65177,8 +65270,8 @@ var ts;
|
|
|
65177
65270
|
return node.kind === 79 && node.escapedText === "eval";
|
|
65178
65271
|
}
|
|
65179
65272
|
function checkForDisallowedESSymbolOperand(operator) {
|
|
65180
|
-
var offendingSymbolOperand =
|
|
65181
|
-
|
|
65273
|
+
var offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288) ? left :
|
|
65274
|
+
maybeTypeOfKindConsideringBaseConstraint(rightType, 12288) ? right :
|
|
65182
65275
|
undefined;
|
|
65183
65276
|
if (offendingSymbolOperand) {
|
|
65184
65277
|
error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator));
|
|
@@ -65364,7 +65457,7 @@ var ts;
|
|
|
65364
65457
|
for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {
|
|
65365
65458
|
var span = _a[_i];
|
|
65366
65459
|
var type = checkExpression(span.expression);
|
|
65367
|
-
if (
|
|
65460
|
+
if (maybeTypeOfKindConsideringBaseConstraint(type, 12288)) {
|
|
65368
65461
|
error(span.expression, ts.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String);
|
|
65369
65462
|
}
|
|
65370
65463
|
texts.push(span.literal.text);
|
|
@@ -69556,7 +69649,7 @@ var ts;
|
|
|
69556
69649
|
}
|
|
69557
69650
|
if (!ts.isStatic(member) && isPropertyWithoutInitializer(member)) {
|
|
69558
69651
|
var propName = member.name;
|
|
69559
|
-
if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName)) {
|
|
69652
|
+
if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName) || ts.isComputedPropertyName(propName)) {
|
|
69560
69653
|
var type = getTypeOfSymbol(getSymbolOfNode(member));
|
|
69561
69654
|
if (!(type.flags & 3 || getFalsyFlags(type) & 32768)) {
|
|
69562
69655
|
if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) {
|
|
@@ -69590,7 +69683,9 @@ var ts;
|
|
|
69590
69683
|
return false;
|
|
69591
69684
|
}
|
|
69592
69685
|
function isPropertyInitializedInConstructor(propName, propType, constructor) {
|
|
69593
|
-
var reference = ts.
|
|
69686
|
+
var reference = ts.isComputedPropertyName(propName)
|
|
69687
|
+
? ts.factory.createElementAccessExpression(ts.factory.createThis(), propName.expression)
|
|
69688
|
+
: ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propName);
|
|
69594
69689
|
ts.setParent(reference.expression, reference);
|
|
69595
69690
|
ts.setParent(reference, constructor);
|
|
69596
69691
|
reference.flowNode = constructor.returnFlowNode;
|
|
@@ -77396,10 +77491,7 @@ var ts;
|
|
|
77396
77491
|
var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
|
|
77397
77492
|
if (!compilerOptions.removeComments) {
|
|
77398
77493
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
77399
|
-
|
|
77400
|
-
? ts.declarationNameToString(originalNode.name)
|
|
77401
|
-
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
77402
|
-
ts.addSyntheticTrailingComment(substitute, 3, " " + propertyName + " ");
|
|
77494
|
+
ts.addSyntheticTrailingComment(substitute, 3, " " + safeMultiLineComment(ts.getTextOfNode(originalNode)) + " ");
|
|
77403
77495
|
}
|
|
77404
77496
|
return substitute;
|
|
77405
77497
|
}
|