typescript 4.8.0-dev.20220728 → 4.8.0-dev.20220731
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 +1 -0
- package/lib/de/diagnosticMessages.generated.json +2 -0
- package/lib/es/diagnosticMessages.generated.json +2 -0
- package/lib/fr/diagnosticMessages.generated.json +2 -0
- package/lib/it/diagnosticMessages.generated.json +2 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +2 -0
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/ru/diagnosticMessages.generated.json +2 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +115 -71
- package/lib/tsserver.js +166 -99
- package/lib/tsserverlibrary.js +166 -99
- package/lib/typescript.js +165 -98
- package/lib/typescriptServices.js +165 -98
- package/lib/typingsInstaller.js +141 -97
- package/lib/zh-cn/diagnosticMessages.generated.json +2 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +2 -0
- package/package.json +1 -1
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Očekává se identifikátor. {0} je rezervované slovo, které se tady nedá použít.",
|
|
776
776
|
"Identifier_expected_1003": "Očekával se identifikátor.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Očekává se identifikátor. __esModule je při transformaci modulů ECMAScript rezervované jako označení exportu.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Očekává se identifikátor nebo řetězcový literál.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Pokud balíček ‚{0}‘ ve skutečnosti zveřejňuje tento modul, zvažte možnost poslat žádost o přijetí změn, aby se připojila adresa ‚https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}‘",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Pokud balíček {0} skutečně zpřístupňuje tento modul, zkuste přidat nový soubor deklarace (.d.ts), který obsahuje declare module {1};",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorovat tuto chybovou zprávu",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Ein this-Typ ist nur in einem nicht statischen Member einer Klasse oder Schnittstelle verfügbar.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Eine Datei \"tsconfig.json\" ist bereits definiert unter: \"{0}\".",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Ein Tupelelement kann nicht gleichzeitig als \"optional\" und als \"rest\" festgelegt werden.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Ein Tupeltyp kann nicht mit einem negativen Wert indiziert werden.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Typassertionsausdrücke sind in der linken Seite von Potenzierungsausdrücken nicht zulässig. Erwägen Sie, den Ausdruck in Klammern zu setzen.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Typliteraleigenschaften können keinen Initialisierer aufweisen.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Ein reiner Typenimport kann einen Standardimport oder benannte Bindungen angeben, aber nicht beides.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort, das hier nicht verwendet werden kann.",
|
|
776
777
|
"Identifier_expected_1003": "Es wurde ein Bezeichner erwartet.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Bezeichner erwartet. \"__esModule\" ist als exportierter Marker für die Umwandlung von ECMAScript-Modulen reserviert.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "Bezeichner oder Zeichenfolgenliteral erwartet.",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, erwägen Sie, einen Pull Request zum Ändern von https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1} zu senden.",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, versuchen Sie, eine neue Deklarationsdatei (.d.ts) hinzuzufügen, die Declare-Modul \"{1}\" enthält.",
|
|
780
782
|
"Ignore_this_error_message_90019": "Diese Fehlermeldung ignorieren",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "El tipo \"this\" solo está disponible en un miembro no estático de una clase o interfaz.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Ya hay un archivo \"tsconfig.json\" definido en: '{0}'.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un miembro de tupla no puede ser tanto opcional como REST.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo de tupla no se puede indizar con un valor negativo.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "No se admite una expresión de aserción de tipo en el lado izquierdo de una expresión de exponenciación. Considere la posibilidad de incluir la expresión entre paréntesis.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Una propiedad de literal de tipo no puede tener un inicializador.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Una importación solo de tipo puede especificar una importación predeterminada o enlaces con nombre, pero no ambos.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Se esperaba un identificador. \"{0}\" es una palabra reservada que no se puede usar aquí.",
|
|
776
777
|
"Identifier_expected_1003": "Se esperaba un identificador.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. \"__esModule\" está reservado como marcador exportado al transformar módulos ECMAScript.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "Se esperaba un literal de cadena o identificador",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si el paquete \"{0}\" expone realmente este módulo, considere la posibilidad de enviar una solicitud de incorporación de cambios para corregir \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\".",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si el paquete '{0}' realmente expone este módulo, intente agregar un nuevo archivo de declaración (.d.ts) que contenga 'declarar módulo '{1}';`",
|
|
780
782
|
"Ignore_this_error_message_90019": "Ignorar este mensaje de error",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un type 'this' est disponible uniquement dans un membre non statique d'une classe ou d'une interface.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un fichier 'tsconfig.json' est déjà défini à l'emplacement '{0}'.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membre de tuple ne peut pas être à la fois facultatif et rest.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un type tuple ne peut pas être indexé avec une valeur négative.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Une expression d'assertion de type n'est pas autorisée dans la partie gauche d'une expression d'élévation à une puissance. Mettez l'expression entre parenthèses.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Une propriété de littéral de type ne peut pas avoir d'initialiseur.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Une importation de type uniquement peut spécifier une importation par défaut ou des liaisons nommées, mais pas les deux.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Identificateur attendu. '{0}' est un mot réservé qui ne peut pas être utilisé ici.",
|
|
776
777
|
"Identifier_expected_1003": "Identificateur attendu.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificateur attendu. '__esModule' est réservé en tant que marqueur exporté durant la transformation des modules ECMAScript.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "Identificateur ou littéral de chaîne attendu",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si le package '{0}' expose réellement ce module, envoyez une demande de tirage (pull request) pour modifier 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si le package' {0} 'expose effectivement ce module, essayez d’ajouter un nouveau fichier de déclaration (. d. TS) contenant’declare module' {1} '; '",
|
|
780
782
|
"Ignore_this_error_message_90019": "Ignorer ce message d'erreur",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un tipo 'this' è disponibile solo in un membro non statico di una classe o di interfaccia.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un file 'tsconfig.json' è già definito in: '{0}'.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membro di tupla non può essere sia facoltativo che inattivo.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo di tupla non può essere indicizzato con un valore negativo.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Nella parte sinistra di un'espressione di elevamento a potenza non è consentita un'espressione di asserzione tipi. Provare a racchiudere l'espressione tra parentesi.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Una proprietà di valore letterale di tipo non può contenere un inizializzatore.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Un'importazione solo di tipi può specificare un'importazione predefinita o binding denominati, ma non entrambi.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "È previsto un identificatore. '{0}' è una parola riservata che non può essere usata in questo punto.",
|
|
776
777
|
"Identifier_expected_1003": "È previsto l'identificatore.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "È previsto un identificatore. '__esModule' è riservato come marcatore esportato durante la trasformazione di moduli ECMAScript.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "Previsto identificatore o valore letterale stringa.",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se il pacchetto '{0}' espone effettivamente questo modulo, provare a inviare una richiesta pull per modificare 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se il pacchetto ' {0}' espone effettivamente il modulo, provare ad aggiungere un nuovo file di dichiarazione (.d.ts) contenente ' Dichiara modulo' {1}';'",
|
|
780
782
|
"Ignore_this_error_message_90019": "Ignorare questo messaggio di errore",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "識別子が予期されていました。'{0}' は、ここでは使用できない予約語です。",
|
|
776
776
|
"Identifier_expected_1003": "識別子が必要です。",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "識別子が必要です。'__esModule' は、ECMAScript モジュールを変換するときのエクスポート済みマーカーとして予約されています。",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "識別子または文字列リテラルが必要です。",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' パッケージが実際にこのモジュールを公開する場合は、pull request を送信して 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' を修正することを検討してください",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' パッケージが実際にこのモジュールを公開する場合は、'declare module '{1}';' を含む新しい宣言 (d.ts) ファイルを追加してみてください。",
|
|
780
781
|
"Ignore_this_error_message_90019": "このエラー メッセージを無視する",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 형식은 클래스 또는 인터페이스의 비정적 멤버에서만 사용할 수 있습니다.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 파일이 이미 '{0}'에 정의되어 있습니다.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "튜플 멤버는 optional이면서 rest일 수 없습니다.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "튜플 형식은 음수 값으로 인덱싱할 수 없습니다.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "지수 식의 왼쪽에는 type assertion expression을 사용할 수 없습니다. 식을 괄호로 묶는 것이 좋습니다.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "형식 리터럴 속성에는 이니셜라이저를 사용할 수 없습니다.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "형식 전용 가져오기는 기본 가져오기 또는 명명된 바인딩을 지정할 수 있지만, 둘 다 지정할 수는 없습니다.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "식별자가 필요합니다. '{0}'은(는) 여기에서 사용할 수 없는 예약어입니다.",
|
|
776
777
|
"Identifier_expected_1003": "식별자가 필요합니다.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "식별자가 필요합니다. '__esModule'은 ECMAScript 모듈을 변환할 때 내보낸 표식으로 예약되어 있습니다.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "식별자 또는 문자열 리터럴이 필요합니다.",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' 패키지가 이 모듈을 실제로 공개하는 경우 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' 수정을 위한 끌어오기 요청을 보내는 것이 좋습니다.",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' 패키지가 실제로 이 모듈을 노출하는 경우 'declare module {1}';'이(가) 포함된 새 선언(.d.ts) 파일을 추가해 보세요.",
|
|
780
782
|
"Ignore_this_error_message_90019": "이 오류 메시지 무시",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Oczekiwano identyfikatora. „{0}” jest słowem zastrzeżonym, którego nie można użyć w tym miejscu.",
|
|
776
776
|
"Identifier_expected_1003": "Oczekiwano identyfikatora.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Oczekiwano identyfikatora. Ciąg „__esModule” jest zastrzeżony jako eksportowany znacznik podczas transformowania modułów ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Oczekiwano identyfikatora lub literału ciągu.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Jeśli pakiet \"{0}\" faktycznie udostępnia ten moduł, rozważ wysłanie żądania ściągnięcia w celu zmiany elementu \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Jeśli pakiet „{0}” rzeczywiście uwidacznia ten moduł, spróbuj dodać nowy plik deklaracji (.d.ts) zawierający „declare module”{1}';`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignoruj ten komunikat o błędzie",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Identificador esperado. '{0}' é uma palavra reservada que não pode ser usada aqui.",
|
|
776
776
|
"Identifier_expected_1003": "Identificador esperado.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. '__esModule' é reservado como um marcador exportado ao transformar os módulos ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Identificador ou literal de cadeia de caracteres esperado.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se o pacote '{0}' realmente expõe este módulo, considere enviar uma solicitação de pull para corrigir 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se o pacote '{0}' realmente expõe este módulo, tente adicionar um novo arquivo de declaração (.d.ts) contendo o módulo `declare '{1}';`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorar essa mensagem de erro",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Тип this доступен только в нестатическом элементе класса или интерфейса.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Файл tsconfig.json уже определен в \"{0}\".",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Элемент кортежа не может быть одновременно элементом rest и необязательным элементом.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Тип кортежа нельзя индексировать с отрицательным значением.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Выражение утверждения типа не допускается в левой части выражения, возводимого в степень. Попробуйте заключить выражение в скобки.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Свойство литерала типа не может иметь инициализатор.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Импорт, затрагивающий только тип, может указывать либо только импорт по умолчанию, либо только именованные привязки.",
|
|
@@ -775,6 +776,7 @@
|
|
|
775
776
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Ожидается идентификатор. \"{0}\" — это зарезервированное слово, которое не может быть использовано здесь.",
|
|
776
777
|
"Identifier_expected_1003": "Ожидался идентификатор.",
|
|
777
778
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Ожидался идентификатор. Значение \"__esModule\" зарезервировано как экспортируемый маркер при преобразовании модулей ECMAScript.",
|
|
779
|
+
"Identifier_or_string_literal_expected_1478": "Ожидался идентификатор или строковый литерал.",
|
|
778
780
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Если пакет \"{0}\" фактически предоставляет этот модуль, рекомендуется отправить запрос на вытягивание, чтобы изменить \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"",
|
|
779
781
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Если пакет \"{0}\" действительно предоставляет этот модуль, попробуйте добавить новый файл объявления (. d. TS), содержащий \"declare module\" \"{1}\";`",
|
|
780
782
|
"Ignore_this_error_message_90019": "Пропустите это сообщение об ошибке",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Tanımlayıcı bekleniyor. '{0}', burada kullanılamayan ayrılmış bir sözcüktür.",
|
|
776
776
|
"Identifier_expected_1003": "Tanımlayıcı bekleniyor.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Tanımlayıcı bekleniyor. '__esModule', ECMAScript modülleri dönüştürülürken, dışarı aktarılan bir işaretçi olarak ayrılmış.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Tanımlayıcı veya sabit değerli dize bekleniyor.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' paketi bu modülü gerçekten kullanıma sunarsa, 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' öğesini düzeltmek için bir çekme isteği göndermeyi deneyin",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "‘{0}’ paketi bu modülü fiili olarak kullanıma sunuyorsa `'{1}' modülünü bildir;` ifadesini içeren yeni bir bildirim (.d.ts) dosyası eklemeyi deneyin",
|
|
780
781
|
"Ignore_this_error_message_90019": "Bu hata iletisini yoksay",
|
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.20220731";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -1484,6 +1484,10 @@ var ts;
|
|
|
1484
1484
|
ts.cast = cast;
|
|
1485
1485
|
function noop(_) { }
|
|
1486
1486
|
ts.noop = noop;
|
|
1487
|
+
ts.noopPush = {
|
|
1488
|
+
push: noop,
|
|
1489
|
+
length: 0
|
|
1490
|
+
};
|
|
1487
1491
|
function returnFalse() {
|
|
1488
1492
|
return false;
|
|
1489
1493
|
}
|
|
@@ -5945,6 +5949,7 @@ var ts;
|
|
|
5945
5949
|
Cannot_create_an_instance_of_an_abstract_class: diag(2511, ts.DiagnosticCategory.Error, "Cannot_create_an_instance_of_an_abstract_class_2511", "Cannot create an instance of an abstract class."),
|
|
5946
5950
|
Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, ts.DiagnosticCategory.Error, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
|
|
5947
5951
|
Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, ts.DiagnosticCategory.Error, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
|
|
5952
|
+
A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, ts.DiagnosticCategory.Error, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
|
|
5948
5953
|
Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, ts.DiagnosticCategory.Error, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
|
|
5949
5954
|
All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, ts.DiagnosticCategory.Error, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
|
|
5950
5955
|
Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, ts.DiagnosticCategory.Error, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
|
|
@@ -19267,7 +19272,7 @@ var ts;
|
|
|
19267
19272
|
propagateChildFlags(node.expression) |
|
|
19268
19273
|
(ts.isIdentifier(node.name) ?
|
|
19269
19274
|
propagateIdentifierNameFlags(node.name) :
|
|
19270
|
-
propagateChildFlags(node.name));
|
|
19275
|
+
propagateChildFlags(node.name) | 536870912);
|
|
19271
19276
|
if (ts.isSuperKeyword(expression)) {
|
|
19272
19277
|
node.transformFlags |=
|
|
19273
19278
|
256 |
|
|
@@ -19296,7 +19301,7 @@ var ts;
|
|
|
19296
19301
|
propagateChildFlags(node.questionDotToken) |
|
|
19297
19302
|
(ts.isIdentifier(node.name) ?
|
|
19298
19303
|
propagateIdentifierNameFlags(node.name) :
|
|
19299
|
-
propagateChildFlags(node.name));
|
|
19304
|
+
propagateChildFlags(node.name) | 536870912);
|
|
19300
19305
|
return node;
|
|
19301
19306
|
}
|
|
19302
19307
|
function updatePropertyAccessChain(node, expression, questionDotToken, name) {
|
|
@@ -19655,6 +19660,9 @@ var ts;
|
|
|
19655
19660
|
else if (ts.isLogicalOrCoalescingAssignmentOperator(operatorKind)) {
|
|
19656
19661
|
node.transformFlags |= 16;
|
|
19657
19662
|
}
|
|
19663
|
+
if (operatorKind === 101 && ts.isPrivateIdentifier(node.left)) {
|
|
19664
|
+
node.transformFlags |= 536870912;
|
|
19665
|
+
}
|
|
19658
19666
|
return node;
|
|
19659
19667
|
}
|
|
19660
19668
|
function propagateAssignmentPatternFlags(node) {
|
|
@@ -22081,29 +22089,29 @@ var ts;
|
|
|
22081
22089
|
case 208:
|
|
22082
22090
|
case 209:
|
|
22083
22091
|
case 204:
|
|
22084
|
-
return
|
|
22092
|
+
return -2147450880;
|
|
22085
22093
|
case 261:
|
|
22086
|
-
return
|
|
22094
|
+
return -1941676032;
|
|
22087
22095
|
case 164:
|
|
22088
|
-
return
|
|
22096
|
+
return -2147483648;
|
|
22089
22097
|
case 214:
|
|
22090
|
-
return
|
|
22098
|
+
return -2072174592;
|
|
22091
22099
|
case 213:
|
|
22092
22100
|
case 256:
|
|
22093
|
-
return
|
|
22101
|
+
return -1937940480;
|
|
22094
22102
|
case 255:
|
|
22095
|
-
return
|
|
22103
|
+
return -2146893824;
|
|
22096
22104
|
case 257:
|
|
22097
22105
|
case 226:
|
|
22098
|
-
return
|
|
22106
|
+
return -2147344384;
|
|
22099
22107
|
case 171:
|
|
22100
|
-
return
|
|
22108
|
+
return -1937948672;
|
|
22101
22109
|
case 167:
|
|
22102
|
-
return
|
|
22110
|
+
return -2013249536;
|
|
22103
22111
|
case 169:
|
|
22104
22112
|
case 172:
|
|
22105
22113
|
case 173:
|
|
22106
|
-
return
|
|
22114
|
+
return -2005057536;
|
|
22107
22115
|
case 130:
|
|
22108
22116
|
case 147:
|
|
22109
22117
|
case 158:
|
|
@@ -22123,23 +22131,23 @@ var ts;
|
|
|
22123
22131
|
case 259:
|
|
22124
22132
|
return -2;
|
|
22125
22133
|
case 205:
|
|
22126
|
-
return
|
|
22134
|
+
return -2147278848;
|
|
22127
22135
|
case 292:
|
|
22128
|
-
return
|
|
22136
|
+
return -2147418112;
|
|
22129
22137
|
case 201:
|
|
22130
22138
|
case 202:
|
|
22131
|
-
return
|
|
22139
|
+
return -2147450880;
|
|
22132
22140
|
case 211:
|
|
22133
22141
|
case 229:
|
|
22134
22142
|
case 350:
|
|
22135
22143
|
case 212:
|
|
22136
22144
|
case 106:
|
|
22137
|
-
return
|
|
22145
|
+
return -2147483648;
|
|
22138
22146
|
case 206:
|
|
22139
22147
|
case 207:
|
|
22140
|
-
return
|
|
22148
|
+
return -2147483648;
|
|
22141
22149
|
default:
|
|
22142
|
-
return
|
|
22150
|
+
return -2147483648;
|
|
22143
22151
|
}
|
|
22144
22152
|
}
|
|
22145
22153
|
ts.getTransformFlagsSubtreeExclusions = getTransformFlagsSubtreeExclusions;
|
|
@@ -35246,18 +35254,7 @@ var ts;
|
|
|
35246
35254
|
NodeResolutionFeatures.None;
|
|
35247
35255
|
}
|
|
35248
35256
|
function resolvePackageNameToPackageJson(packageName, containingDirectory, options, host, cache) {
|
|
35249
|
-
var moduleResolutionState =
|
|
35250
|
-
compilerOptions: options,
|
|
35251
|
-
host: host,
|
|
35252
|
-
traceEnabled: isTraceEnabled(options, host),
|
|
35253
|
-
failedLookupLocations: [],
|
|
35254
|
-
affectingLocations: [],
|
|
35255
|
-
packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
|
|
35256
|
-
conditions: ts.emptyArray,
|
|
35257
|
-
features: NodeResolutionFeatures.None,
|
|
35258
|
-
requestContainingDirectory: containingDirectory,
|
|
35259
|
-
reportDiagnostic: ts.noop
|
|
35260
|
-
};
|
|
35257
|
+
var moduleResolutionState = getTemporaryModuleResolutionState(cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
35261
35258
|
return ts.forEachAncestorDirectory(containingDirectory, function (ancestorDirectory) {
|
|
35262
35259
|
if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
|
|
35263
35260
|
var nodeModulesFolder = ts.combinePaths(ancestorDirectory, "node_modules");
|
|
@@ -36057,18 +36054,9 @@ var ts;
|
|
|
36057
36054
|
var entrypoints;
|
|
36058
36055
|
var extensions = resolveJs ? Extensions.JavaScript : Extensions.TypeScript;
|
|
36059
36056
|
var features = getDefaultNodeResolutionFeatures(options);
|
|
36060
|
-
var requireState =
|
|
36061
|
-
|
|
36062
|
-
|
|
36063
|
-
traceEnabled: isTraceEnabled(options, host),
|
|
36064
|
-
failedLookupLocations: [],
|
|
36065
|
-
affectingLocations: [],
|
|
36066
|
-
packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
|
|
36067
|
-
conditions: ["node", "require", "types"],
|
|
36068
|
-
features: features,
|
|
36069
|
-
requestContainingDirectory: packageJsonInfo.packageDirectory,
|
|
36070
|
-
reportDiagnostic: ts.noop
|
|
36071
|
-
};
|
|
36057
|
+
var requireState = getTemporaryModuleResolutionState(cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
36058
|
+
requireState.conditions = ["node", "require", "types"];
|
|
36059
|
+
requireState.requestContainingDirectory = packageJsonInfo.packageDirectory;
|
|
36072
36060
|
var requireResolution = loadNodeModuleFromDirectoryWorker(extensions, packageJsonInfo.packageDirectory, false, requireState, packageJsonInfo.packageJsonContent, packageJsonInfo.versionPaths);
|
|
36073
36061
|
entrypoints = ts.append(entrypoints, requireResolution === null || requireResolution === void 0 ? void 0 : requireResolution.path);
|
|
36074
36062
|
if (features & NodeResolutionFeatures.Exports && packageJsonInfo.packageJsonContent.exports) {
|
|
@@ -36138,19 +36126,22 @@ var ts;
|
|
|
36138
36126
|
}
|
|
36139
36127
|
}
|
|
36140
36128
|
}
|
|
36141
|
-
function
|
|
36142
|
-
|
|
36129
|
+
function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) {
|
|
36130
|
+
return {
|
|
36143
36131
|
host: host,
|
|
36144
36132
|
compilerOptions: options,
|
|
36145
36133
|
traceEnabled: isTraceEnabled(options, host),
|
|
36146
|
-
failedLookupLocations:
|
|
36147
|
-
affectingLocations:
|
|
36134
|
+
failedLookupLocations: ts.noopPush,
|
|
36135
|
+
affectingLocations: ts.noopPush,
|
|
36148
36136
|
packageJsonInfoCache: packageJsonInfoCache,
|
|
36149
|
-
features:
|
|
36150
|
-
conditions:
|
|
36137
|
+
features: NodeResolutionFeatures.None,
|
|
36138
|
+
conditions: ts.emptyArray,
|
|
36151
36139
|
requestContainingDirectory: undefined,
|
|
36152
36140
|
reportDiagnostic: ts.noop
|
|
36153
36141
|
};
|
|
36142
|
+
}
|
|
36143
|
+
ts.getTemporaryModuleResolutionState = getTemporaryModuleResolutionState;
|
|
36144
|
+
function getPackageScopeForPath(fileName, state) {
|
|
36154
36145
|
var parts = ts.getPathComponents(fileName);
|
|
36155
36146
|
parts.pop();
|
|
36156
36147
|
while (parts.length > 0) {
|
|
@@ -36307,7 +36298,7 @@ var ts;
|
|
|
36307
36298
|
var _a, _b;
|
|
36308
36299
|
var useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames;
|
|
36309
36300
|
var directoryPath = ts.toPath(ts.combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a), ts.createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames));
|
|
36310
|
-
var scope = getPackageScopeForPath(directoryPath, state
|
|
36301
|
+
var scope = getPackageScopeForPath(directoryPath, state);
|
|
36311
36302
|
if (!scope || !scope.packageJsonContent.exports) {
|
|
36312
36303
|
return undefined;
|
|
36313
36304
|
}
|
|
@@ -36366,7 +36357,7 @@ var ts;
|
|
|
36366
36357
|
}
|
|
36367
36358
|
var useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames;
|
|
36368
36359
|
var directoryPath = ts.toPath(ts.combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a), ts.createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames));
|
|
36369
|
-
var scope = getPackageScopeForPath(directoryPath, state
|
|
36360
|
+
var scope = getPackageScopeForPath(directoryPath, state);
|
|
36370
36361
|
if (!scope) {
|
|
36371
36362
|
if (state.traceEnabled) {
|
|
36372
36363
|
trace(state.host, ts.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath);
|
|
@@ -43559,6 +43550,12 @@ var ts;
|
|
|
43559
43550
|
return context.truncating = context.approximateLength > ((context.flags & 1) ? ts.noTruncationMaximumTruncationLength : ts.defaultMaximumTruncationLength);
|
|
43560
43551
|
}
|
|
43561
43552
|
function typeToTypeNodeHelper(type, context) {
|
|
43553
|
+
var savedFlags = context.flags;
|
|
43554
|
+
var typeNode = typeToTypeNodeWorker(type, context);
|
|
43555
|
+
context.flags = savedFlags;
|
|
43556
|
+
return typeNode;
|
|
43557
|
+
}
|
|
43558
|
+
function typeToTypeNodeWorker(type, context) {
|
|
43562
43559
|
if (cancellationToken && cancellationToken.throwIfCancellationRequested) {
|
|
43563
43560
|
cancellationToken.throwIfCancellationRequested();
|
|
43564
43561
|
}
|
|
@@ -52082,21 +52079,28 @@ var ts;
|
|
|
52082
52079
|
getFlowTypeOfReference(accessExpression, propType) :
|
|
52083
52080
|
propType;
|
|
52084
52081
|
}
|
|
52085
|
-
if (everyType(objectType, isTupleType) && ts.isNumericLiteralName(propName)
|
|
52082
|
+
if (everyType(objectType, isTupleType) && ts.isNumericLiteralName(propName)) {
|
|
52083
|
+
var index = +propName;
|
|
52086
52084
|
if (accessNode && everyType(objectType, function (t) { return !t.target.hasRestElement; }) && !(accessFlags & 16)) {
|
|
52087
52085
|
var indexNode = getIndexNodeForAccessExpression(accessNode);
|
|
52088
52086
|
if (isTupleType(objectType)) {
|
|
52087
|
+
if (index < 0) {
|
|
52088
|
+
error(indexNode, ts.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value);
|
|
52089
|
+
return undefinedType;
|
|
52090
|
+
}
|
|
52089
52091
|
error(indexNode, ts.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), ts.unescapeLeadingUnderscores(propName));
|
|
52090
52092
|
}
|
|
52091
52093
|
else {
|
|
52092
52094
|
error(indexNode, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.unescapeLeadingUnderscores(propName), typeToString(objectType));
|
|
52093
52095
|
}
|
|
52094
52096
|
}
|
|
52095
|
-
|
|
52096
|
-
|
|
52097
|
-
|
|
52098
|
-
|
|
52099
|
-
|
|
52097
|
+
if (index >= 0) {
|
|
52098
|
+
errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType));
|
|
52099
|
+
return mapType(objectType, function (t) {
|
|
52100
|
+
var restType = getRestTypeOfTupleType(t) || undefinedType;
|
|
52101
|
+
return accessFlags & 1 ? getUnionType([restType, undefinedType]) : restType;
|
|
52102
|
+
});
|
|
52103
|
+
}
|
|
52100
52104
|
}
|
|
52101
52105
|
}
|
|
52102
52106
|
if (!(indexType.flags & 98304) && isTypeAssignableToKind(indexType, 402653316 | 296 | 12288)) {
|
|
@@ -67774,7 +67778,7 @@ var ts;
|
|
|
67774
67778
|
error(node.name, ts.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name);
|
|
67775
67779
|
}
|
|
67776
67780
|
}
|
|
67777
|
-
if (node.questionToken && ts.isBindingPattern(node.name) && func.body) {
|
|
67781
|
+
if ((node.questionToken || isJSDocOptionalParameter(node)) && ts.isBindingPattern(node.name) && func.body) {
|
|
67778
67782
|
error(node, ts.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature);
|
|
67779
67783
|
}
|
|
67780
67784
|
if (node.name && ts.isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) {
|
|
@@ -81040,23 +81044,58 @@ var ts;
|
|
|
81040
81044
|
function visitClassDeclaration(node) {
|
|
81041
81045
|
if (!(ts.classOrConstructorParameterIsDecorated(node) || ts.childIsDecorated(node)))
|
|
81042
81046
|
return ts.visitEachChild(node, visitor, context);
|
|
81043
|
-
var
|
|
81044
|
-
|
|
81045
|
-
|
|
81046
|
-
var statements = [classStatement];
|
|
81047
|
-
addClassElementDecorationStatements(statements, node, false);
|
|
81048
|
-
addClassElementDecorationStatements(statements, node, true);
|
|
81049
|
-
addConstructorDecorationStatement(statements, node);
|
|
81047
|
+
var statements = ts.hasDecorators(node) ?
|
|
81048
|
+
transformClassDeclarationWithClassDecorators(node, node.name) :
|
|
81049
|
+
transformClassDeclarationWithoutClassDecorators(node, node.name);
|
|
81050
81050
|
if (statements.length > 1) {
|
|
81051
81051
|
statements.push(factory.createEndOfDeclarationMarker(node));
|
|
81052
|
-
ts.setEmitFlags(
|
|
81052
|
+
ts.setEmitFlags(statements[0], ts.getEmitFlags(statements[0]) | 4194304);
|
|
81053
81053
|
}
|
|
81054
81054
|
return ts.singleOrMany(statements);
|
|
81055
81055
|
}
|
|
81056
|
-
function
|
|
81057
|
-
return
|
|
81056
|
+
function decoratorContainsPrivateIdentifierInExpression(decorator) {
|
|
81057
|
+
return !!(decorator.transformFlags & 536870912);
|
|
81058
|
+
}
|
|
81059
|
+
function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) {
|
|
81060
|
+
return ts.some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression);
|
|
81061
|
+
}
|
|
81062
|
+
function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) {
|
|
81063
|
+
for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
|
|
81064
|
+
var member = _a[_i];
|
|
81065
|
+
if (!ts.canHaveDecorators(member))
|
|
81066
|
+
continue;
|
|
81067
|
+
var allDecorators = ts.getAllDecoratorsOfClassElement(member, node);
|
|
81068
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression))
|
|
81069
|
+
return true;
|
|
81070
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression))
|
|
81071
|
+
return true;
|
|
81072
|
+
}
|
|
81073
|
+
return false;
|
|
81074
|
+
}
|
|
81075
|
+
function transformDecoratorsOfClassElements(node, members) {
|
|
81076
|
+
var decorationStatements = [];
|
|
81077
|
+
addClassElementDecorationStatements(decorationStatements, node, false);
|
|
81078
|
+
addClassElementDecorationStatements(decorationStatements, node, true);
|
|
81079
|
+
if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) {
|
|
81080
|
+
members = ts.setTextRange(factory.createNodeArray(__spreadArray(__spreadArray([], members, true), [
|
|
81081
|
+
factory.createClassStaticBlockDeclaration(factory.createBlock(decorationStatements, true))
|
|
81082
|
+
], false)), members);
|
|
81083
|
+
decorationStatements = undefined;
|
|
81084
|
+
}
|
|
81085
|
+
return { decorationStatements: decorationStatements, members: members };
|
|
81058
81086
|
}
|
|
81059
|
-
function
|
|
81087
|
+
function transformClassDeclarationWithoutClassDecorators(node, name) {
|
|
81088
|
+
var _a;
|
|
81089
|
+
var modifiers = ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier);
|
|
81090
|
+
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
81091
|
+
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
81092
|
+
var decorationStatements = [];
|
|
81093
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
81094
|
+
var updated = factory.updateClassDeclaration(node, modifiers, name, undefined, heritageClauses, members);
|
|
81095
|
+
return ts.addRange([updated], decorationStatements);
|
|
81096
|
+
}
|
|
81097
|
+
function transformClassDeclarationWithClassDecorators(node, name) {
|
|
81098
|
+
var _a;
|
|
81060
81099
|
var location = ts.moveRangePastModifiers(node);
|
|
81061
81100
|
var classAlias = getClassAliasIfNeeded(node);
|
|
81062
81101
|
var declName = languageVersion <= 2 ?
|
|
@@ -81064,6 +81103,8 @@ var ts;
|
|
|
81064
81103
|
factory.getLocalName(node, false, true);
|
|
81065
81104
|
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
81066
81105
|
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
81106
|
+
var decorationStatements = [];
|
|
81107
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
81067
81108
|
var classExpression = factory.createClassExpression(undefined, name, undefined, heritageClauses, members);
|
|
81068
81109
|
ts.setOriginalNode(classExpression, node);
|
|
81069
81110
|
ts.setTextRange(classExpression, location);
|
|
@@ -81073,7 +81114,10 @@ var ts;
|
|
|
81073
81114
|
ts.setOriginalNode(statement, node);
|
|
81074
81115
|
ts.setTextRange(statement, location);
|
|
81075
81116
|
ts.setCommentRange(statement, node);
|
|
81076
|
-
|
|
81117
|
+
var statements = [statement];
|
|
81118
|
+
ts.addRange(statements, decorationStatements);
|
|
81119
|
+
addConstructorDecorationStatement(statements, node);
|
|
81120
|
+
return statements;
|
|
81077
81121
|
}
|
|
81078
81122
|
function visitClassExpression(node) {
|
|
81079
81123
|
return factory.updateClassExpression(node, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.name, undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), ts.visitNodes(node.members, visitor, ts.isClassElement));
|
|
@@ -97290,7 +97334,7 @@ var ts;
|
|
|
97290
97334
|
return undefined;
|
|
97291
97335
|
}
|
|
97292
97336
|
function lookupFromPackageJson() {
|
|
97293
|
-
var scope = ts.getPackageScopeForPath(fileName, packageJsonInfoCache, host, options);
|
|
97337
|
+
var scope = ts.getPackageScopeForPath(fileName, ts.getTemporaryModuleResolutionState(packageJsonInfoCache, host, options));
|
|
97294
97338
|
return (scope === null || scope === void 0 ? void 0 : scope.packageJsonContent.type) === "module" ? ts.ModuleKind.ESNext : ts.ModuleKind.CommonJS;
|
|
97295
97339
|
}
|
|
97296
97340
|
}
|