typescript 4.7.0-dev.20220325 → 4.7.0-dev.20220326
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 +4 -1
- package/lib/it/diagnosticMessages.generated.json +4 -1
- package/lib/ja/diagnosticMessages.generated.json +4 -1
- package/lib/ko/diagnosticMessages.generated.json +4 -1
- package/lib/pl/diagnosticMessages.generated.json +4 -1
- package/lib/tr/diagnosticMessages.generated.json +4 -1
- package/lib/tsc.js +12 -17
- package/lib/tsserver.js +14 -28
- package/lib/tsserverlibrary.js +14 -28
- package/lib/typescript.js +14 -28
- package/lib/typescriptServices.js +14 -28
- package/lib/typingsInstaller.js +12 -17
- package/lib/zh-cn/diagnosticMessages.generated.json +4 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +4 -1
- package/package.json +1 -1
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Zadejte funkci objektu pro vytváření fragmentů JSX, která se použije při cílení na generování JSX react se zadanou možností kompilátoru jsxFactory, například Fragment.",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Zadejte základní adresář, který se použije k řešení názvů modulů, které nejsou relativní.",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Zdejte sekvenci konce řádku, která se má použít při generování souborů: CRLF (dos) nebo LF (unix).",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "Zadejte složku pro soubory přírůstkové kompilace .tsbuildinfo.",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Zadejte umístění, ve kterém by měl ladicí program najít soubory TypeScript namísto umístění zdroje.",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Zadejte umístění, ve kterém by měl ladicí program najít soubory mapy namísto generovaných umístění.",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Zadejte maximální hloubku složky, která se použije pro kontrolu souborů JavaScriptu z node_modules. Platí pouze pro allowJs.",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Zadejte specifikátor modulu, který se má použít k importu továrních funkcí ‚jsx‘ a ‚jsxs‘ např. z funkce react.",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Zadejte objekt vyvolaný pro createElement. To platí pouze při cílení na generování JSX react.",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "Zadejte výstupní adresář pro generované deklarační soubory.",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Zadejte cestu pro soubor přírůstkové kompilace .tsbuildinfo.",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Zadejte kořenový adresář vstupních souborů. Slouží ke kontrole struktury výstupního adresáře pomocí --outDir.",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "Zadejte kořenovou složku se zdrojovými soubory.",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Zadejte pro ladicí programy kořenovou cestu, kde najdou referenční zdrojový kód.",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "Typ {0} nejde přiřadit typu {1}.",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Typ {0} se nedá přiřadit k typu {1}. Měli jste na mysli {2}?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Typ {0} se nedá přiřadit typu {1}. Existují dva různé typy s tímto názvem, ale nesouvisí spolu.",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Typ {0} nelze přiřadit k typu {1}, jak je implikováno anotací odchylky.",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typů vlastností cíle.",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typu cíle.",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "Typ {0} se nedá porovnat s typem {1}.",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "{0} se zadalo více než jednou, proto se toto použití přepíše.",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "Seznam {0} nemůže být prázdný.",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "Modifikátor {0} se už jednou vyskytl.",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Modifikátor {0} se může vyskytovat jenom u parametru typu aliasu třídy, rozhraní nebo typu.",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Modifikátor {0} se nemůže objevit v deklaraci konstruktoru.",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Modifikátor {0} se nemůže objevit v elementu modulu nebo oboru názvů.",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "Modifikátor {0} se nemůže objevit v parametru.",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "Modifikátor {0} se nemůže objevit u člena typu.",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "Modifikátor {0} se nemůže objevit u parametru typu.",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "Modifikátor {0} se nemůže objevit v signatuře indexu.",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Modifikátor {0} se nemůže objevit u elementů třídy tohoto typu.",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "Modifikátor {0} tady nejde použít.",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Specificare la funzione della factory di frammenti JSX da usare quando la destinazione è la creazione JSX 'react' quando è specificata l'opzione del compilatore 'jsxFactory', ad esempio 'Fragment'.",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Specificare la directory di base per risolvere i nomi di modulo non relativi.",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Specifica la sequenza di fine riga da usare per la creazione dei file, ovvero 'CRLF' (in DOS) o 'LF' (in UNIX).",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "Consente di specificare la cartella per i file di compilazione incrementale .tsbuildinfo.",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Specifica il percorso in cui il debugger deve trovare i file TypeScript invece dei percorsi di origine.",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Specifica il percorso in cui il debugger deve trovare i file map invece dei percorsi generati.",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Consente di specificare la profondità massima della cartella utilizzata per il controllo dei file JavaScript da 'node_modules'. Applicabile solo con 'allowJs'.",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Specificare l'identificatore di modulo da usare da cui importare le funzioni di factory 'jsx' e 'jsxs', ad esempio react",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Consente di specificare l'oggetto richiamato per 'createElement'. Si applica quando la destinazione è la creazione JSX `react`.",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "Consente di specificare la directory di output per i file di dichiarazione generati.",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Consente di specificare il percorso per il file di compilazione incrementale .tsbuildinfo.",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Specifica la directory radice dei file di input. Usare per controllare la struttura della directory di output con --outDir.",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "Consente di specificare la cartella radice nei file di origine.",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Consente di specificare il percorso radice per consentire ai debugger di trovare il codice sorgente di riferimento.",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "Il tipo '{0}' non è assegnabile al tipo '{1}'.",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Si intendeva '{2}'?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Sono presenti due tipi diversi con questo nome, che però non sono correlati.",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Il tipo '{0}' non può essere assegnato al tipo '{1}' come indicato dall'annotazione di varianza.",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' ai tipi di proprietà di destinazione.",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' al tipo di destinazione.",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "Il tipo '{0}' non è confrontabile con il tipo '{1}'.",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' è specificato più di una volta, quindi il relativo utilizzo verrà sovrascritto.",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "L'elenco '{0}' non può essere vuoto.",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "Il modificatore '{0}' è già presente.",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Il modificatore '{0}' può essere presente solo in un parametro di tipo di una classe, un'interfaccia o un alias di tipo",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Il modificatore '{0}' non può essere incluso in una dichiarazione di costruttore.",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Il modificatore '{0}' non può essere incluso in un elemento modulo o spazio dei nomi.",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "Il modificatore '{0}' non può essere incluso in un parametro.",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "Il modificatore '{0}' non può essere incluso in un membro di tipo.",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "Il modificatore '{0}' non può essere incluso in un parametro di tipo.",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "Il modificatore '{0}' non può essere incluso in una firma dell'indice.",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Il modificatore '{0}' non può essere incluso in elementi di classe di questo tipo.",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "Non è possibile usare il modificatore '{0}' in questo punto.",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "'jsxFactory' コンパイラ オプションを指定して 'react' JSX 生成をターゲットにするときに使用する JSX フラグメント ファクトリ関数を指定します (例: 'Fragment')。",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "非相対モジュール名を解決するための基本ディレクトリを指定します。",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "ファイルの生成時に使用する行シーケンスの末尾を指定します: 'CRLF' (dos) または 'LF' (unix)。",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": ".tsbuildinfo 増分コンパイル ファイルのフォルダーを指定します。",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "デバッガーがソースの場所の代わりに TypeScript ファイルを検索する必要のある場所を指定します。",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "デバッガーが、生成された場所の代わりにマップ ファイルを検索する必要のある場所を指定します。",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "'node_modules' で JavaScript ファイルを確認するために使用するフォルダーの深さの最大値を指定します。'allowJs' にのみ適用可能です。",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "'jsx' と 'jsxs' のファクトリ関数をインポートするために使用されるモジュール指定子を指定します。例: react",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "'createElement' に対して呼び出されたオブジェクトを指定します。これは、'react' JSX 発行を対象とする場合にのみ適用されます。",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "生成された宣言ファイルの出力ディレクトリを指定します。",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": ".tsbuildinfo 増分コンパイル ファイルへのパスを指定します。",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "入力ファイルのルート ディレクトリを指定します。--outDir とともに、出力ディレクトリ構造の制御に使用します。",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "ソース ファイル内のルート フォルダーを指定します。",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "デバッガーのルート パスを指定して、参照ソース コードを検索します。",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "型 '{0}' を型 '{1}' に割り当てることはできません。",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "型 '{0}' を型 '{1}' に割り当てることはできません。'{2}' でよろしいですか?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "型 '{0}' は型 '{1}' に割り当てられません。同じ名前で 2 つの異なる型が存在しますが、これは関連していません。",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "型 '{0}' は、差異注釈によって暗黙的に示されているように、型 '{1}' に割り当てできません。",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットのプロパティの型に 'undefined' を追加することを検討してください。",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットの型に 'undefined' を追加することを検討してください。",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "型 '{0}' は型 '{1}' と比較できません。",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' が複数回指定されているため、ここでの使用は上書きされます。",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "'{0}' のリストを空にすることはできません。",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "'{0}' 修飾子は既に存在します。",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾子は、クラス、インターフェイス、または型エイリアスの型パラメーターでのみ使用できます",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 修飾子はコンストラクター宣言では使用できません。",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 修飾子は、モジュールまたは名前空間の要素では使用できません。",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "'{0}' 修飾子はパラメーターでは使用できません。",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 修飾子は型メンバーでは使用できません。",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 修飾子は型パラメーターでは表示できません。",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 修飾子はインデックス シグネチャでは使用できません。",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "'{0}' 修飾子はこの種類のクラス要素では使用できません。",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "'{0}' 修飾子はここでは使用できません。",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "'JsxFactory' 컴파일러 옵션이 지정된 상태로 'react' JSX 내보내기를 대상으로 설정할 때 사용할 JSX 조각 팩터리 함수를 지정합니다(예: 'Fragment').",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "상대적이지 않은 모듈 이름을 확인할 기본 디렉터리를 지정합니다.",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "파일을 내보낼 때 사용할 줄 시퀀스의 끝 지정: 'CRLF'(dos) 또는 'LF'(unix).",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": ".tsbuildinfo 증분 컴파일 파일의 폴더를 지정합니다.",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "소스 위치 대신 디버거가 TypeScript 파일을 찾아야 하는 위치를 지정하세요.",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "생성된 위치 대신 디버거가 맵 파일을 찾아야 하는 위치를 지정하세요.",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "'node_modules'에서 JavaScript 파일을 확인하는 데 사용되는 최대 폴더 깊이를 지정합니다. 'allowJs'에만 적용 가능합니다.",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "'jsx' 및 'jsxs' 팩터리 함수를 가져오는 데 사용할 모듈 지정자를 지정합니다(예: react).",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "'createElement'에 대해 호출된 개체를 지정합니다. '반응' JSX 방출을 대상으로 할 때만 적용됩니다.",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "생성된 선언 파일의 출력 디렉터리를 지정합니다.",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": ".tsbuildinfo 증분 컴파일 파일의 경로를 지정합니다.",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "입력 파일의 루트 디렉터리를 지정하세요. --outDir이 포함된 출력 디렉터리 구조를 제어하는 데 사용됩니다.",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "소스 파일 내에서 루트 폴더를 지정합니다.",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "디버거의 루트 경로를 지정하여 참조 소스 코드를 찾습니다.",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "'{0}' 형식은 '{1}' 형식에 할당할 수 없습니다.",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "'{0}' 형식은 '{1}' 형식에 할당할 수 없습니다. '{2}'을(를) 의미했나요?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "'{0}' 형식을 '{1}' 형식에 할당할 수 없습니다. 이름이 같은 2개의 서로 다른 형식이 있지만 서로 관련은 없습니다.",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "'{0}' 형식은 가변성 주석에 암시된 대로 '{1}' 형식에 할당할 수 없습니다.",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 속성의 유형에 'undefined'를 추가하는 것을 고려하세요.",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 유형에 'undefined'를 추가하는 것을 고려하세요.",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "'{0}' 형식을 '{1}' 형식과 비교할 수 없습니다.",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}'이(가) 두 번 이상 지정되어 이 사용량을 덮어씁니다.",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "'{0}' 목록은 비워 둘 수 없습니다.",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "'{0}' 한정자가 이미 있습니다.",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 한정자는 클래스, 인터페이스 또는 형식 별칭의 형식 매개 변수에만 나타날 수 있습니다.",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 한정자는 생성자 선언에 나타날 수 없습니다.",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 한정자는 모듈 또는 네임스페이스 요소에 나타날 수 없습니다.",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "{0}' 한정자는 매개 변수에 표시될 수 없습니다.",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 한정자는 형식 멤버에 나타날 수 없습니다.",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 한정자는 형식 매개 변수에 나타날 수 없습니다.",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 한정자는 인덱스 시니그처에 나타날 수 없습니다.",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "이 종류의 클래스 요소에는 '{0}' 한정자를 표시할 수 없습니다.",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "'{0}' 한정자는 여기에 사용할 수 없습니다.",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Określ funkcję fabryki fragmentów JSX, która ma być używana po ukierunkowaniu na emisję JSX „react” za pomocą opcji kompilatora „jsxFactory”, na przykład „Fragment”.",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Określ katalog podstawowy, aby rozpoznać nie względne nazwy modułów.",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Określ sekwencję końca wiersza, która ma być używana podczas emitowania plików: „CRLF” (dos) lub „LF” (unix).",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "Określ folder dla przyrostowych plików kompilacji .tsbuildinfo.",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Określ lokalizację, w której debuger ma szukać plików TypeScript zamiast szukania w lokalizacjach źródłowych.",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Określ lokalizację, w której debuger ma szukać plików map zamiast szukania w wygenerowanych lokalizacjach.",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Określ maksymalną głębokość folderów używaną do sprawdzania plików JavaScript z poziomu elementu „node_modules”. Ma to zastosowanie tylko w przypadku użycia opcji „allowJs”.",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Określ specyfikator modułu, który ma być używany do importowania z funkcji fabryki \"jsx\" i \"jsxs\", na przykład z platformy React",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Określ obiekt wywoływany dla elementu „createElement”. Ma to zastosowanie tylko w przypadku docelowej emisji kodu JSX „react”.",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "Określ katalog wyjściowy dla generowanych plików deklaracji.",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Określ ścieżkę do pliku kompilacji przyrostowej .tsbuildinfo.",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Określ katalog główny plików wejściowych. Strukturą katalogów wyjściowych można sterować przy użyciu opcji --outDir.",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "Określ folder główny w plikach źródłowych.",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Określ ścieżkę katalogu głównego, w którym debugery będą mogły znaleźć referencyjny kod źródłowy.",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "Typu „{0}” nie można przypisać do typu „{1}”.",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Nie można przypisać typu „{0}” do typu „{1}”. Czy chodziło Ci o „{2}”?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Typu „{0}” nie można przypisać do typu „{1}”. Istnieją dwa różne typy o tej nazwie, lecz są ze sobą niezwiązane.",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Nie można przypisać typu „{0}” do typu „{1}”, jak sugeruje adnotacja wariancji.",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Nie można przypisać typu \"{0}\" do typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typów właściwości obiektu docelowego.",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Nie można przypisać typu \"{0}\" do typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typu elementu docelowego.",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "Typu „{0}” nie można porównać z typem „{1}”.",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "Element „{0}” został określony więcej niż raz, dlatego to użycie zostanie przesłonięte.",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "Lista „{0}” nie może być pusta.",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "Napotkano już modyfikator „{0}”.",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Modyfikator „{0}” może występować tylko w parametrze typu klasy, interfejsu lub aliasu typu",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Modyfikator „{0}” nie może występować w deklaracji konstruktora.",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Modyfikator „{0}” nie może być stosowany w przypadku elementu przestrzeni nazw lub modułu.",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "Modyfikator „{0}” nie może występować w parametrze.",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "Modyfikator „{0}” nie może być stosowany w przypadku składowej typu.",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "Modyfikator „{0}” nie może występować w parametrze typu",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "Modyfikator „{0}” nie może być stosowany w przypadku sygnatury indeksu.",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Modyfikator „{0}” nie może występować w elementach klasy tego rodzaju.",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "Modyfikatora „{0}” nie można użyć w tym miejscu.",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "'jsxFactory' derleme seçeneği belirtilmiş olarak 'react' JSX yaymasını hedeflerken kullanılacak JSX parçası fabrika işlevini belirtin (ör. 'Fragment').",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Göreli olmayan modül adlarını çözümlemek için temel dizini belirtin.",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Dosyalar gösterilirken kullanılacak satır sonu dizisini belirtin: 'CRLF' (dos) veya 'LF' (unix).",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": ".tsbuildinfo artımlı derleme dosyaları için klasörü belirtin.",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Hata ayıklayıcının TypeScript dosyalarını kaynak konumlar yerine nerede bulması gerektiğini belirtin.",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Hata ayıklayıcının, eşlem dosyalarını üretilen konumlar yerine nerede bulması gerektiğini belirtin.",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "'node_modules' öğesinden JavaScript dosyaları teslim almak için kullanılan maksimum klasör derinliğini belirtin. Yalnızca 'allowJs' ile geçerlidir.",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "'jsx' ve 'jsxs' fabrika işlevlerini içeri aktarmak için kullanılacak modül tanımlayıcısını (ör. react) belirtin.",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "'createElement' için çağrılan nesneyi belirtin. Bu, yalnızca 'react' JSX üretme hedeflenirken geçerlidir.",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "Oluşturulan bildirim dosyaları için çıkış dizinini belirtin.",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": ".tsbuildinfo artımlı derleme dosyasının yolunu belirtin.",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Giriş dosyalarının kök dizinini belirtin. Çıkış dizininin yapısını --outDir ile denetlemek için kullanın.",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "Kaynak dosyalarınızda kök klasörü belirtin.",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Başvuru kaynak kodunu bulmak için hata ayıklayıcıların kök yolunu belirtin.",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "'{0}' türü, '{1}' türüne atanamaz.",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "'{0}' türü '{1}' türüne atanamaz. '{2}' mi demek istediniz?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "'{0}' türü '{1}' türüne atanamaz. Bu ada sahip iki farklı tür mevcut, ancak bu türler birbiriyle ilişkisiz.",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Varyans ek açıklaması tarafından belirtildiği gibi '{0}' türü '{1}' türüne atanamaz.",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "'{0}' türü, '{1}' türüne 'exactOptionalPropertyTypes: true' ile atanamaz. Hedef özelliklerinin türlerine 'undefined' eklemeyi deneyin.",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' türü, '{1}' türüne 'exactOptionalPropertyTypes: true' ile atanamaz. Hedef türüne 'undefined' eklemeyi deneyin.",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "'{0}' türü '{1}' türüyle karşılaştırılamaz.",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' birden çok kez belirtildiğinden bu kullanımın üzerine yazılacak.",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "'{0}' listesi boş olamaz.",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "'{0}' değiştiricisi zaten görüldü.",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' değiştiricisi yalnızca bir sınıfın, arabirimin veya tür diğer adının tür parametresinde görünebilir",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' değiştiricisi bir oluşturucu bildiriminde görüntülenemez.",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' değiştiricisi, bir modülde veya ad alanı öğesinde görünemez.",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "'{0}' değiştiricisi bir parametrede görüntülenemez.",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' değiştiricisi, bir tür üyesinde görünemez.",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' değiştiricisi, bir tür parametresinde görünemez",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' değiştiricisi, bir dizin imzasında görünemez.",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "'{0}' değiştiricisi bu tip sınıf öğelerinde görünemez.",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "'{0}' değiştiricisi burada kullanılamaz.",
|
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.20220326";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -46180,11 +46180,16 @@ var ts;
|
|
|
46180
46180
|
}
|
|
46181
46181
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
46182
46182
|
if (!popTypeResolution()) {
|
|
46183
|
-
|
|
46184
|
-
if (
|
|
46185
|
-
|
|
46186
|
-
|
|
46183
|
+
var getter = ts.getDeclarationOfKind(symbol, 172);
|
|
46184
|
+
if (getter) {
|
|
46185
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
46186
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
46187
|
+
}
|
|
46188
|
+
else if (noImplicitAny) {
|
|
46189
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
46190
|
+
}
|
|
46187
46191
|
}
|
|
46192
|
+
type = anyType;
|
|
46188
46193
|
}
|
|
46189
46194
|
return type;
|
|
46190
46195
|
}
|
|
@@ -60220,21 +60225,11 @@ var ts;
|
|
|
60220
60225
|
}
|
|
60221
60226
|
return false;
|
|
60222
60227
|
}
|
|
60223
|
-
function uniqueStrings(strings) {
|
|
60224
|
-
var unique = new ts.Set(strings);
|
|
60225
|
-
var result = [];
|
|
60226
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
60227
|
-
return result;
|
|
60228
|
-
}
|
|
60229
60228
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
60230
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
60231
|
-
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; });
|
|
60232
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
60229
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), 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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
60233
60230
|
}
|
|
60234
60231
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
60235
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 && 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(
|
|
60236
|
-
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; });
|
|
60237
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
60232
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 && 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.filter(getPropertiesOfType(contextualType), 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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
60238
60233
|
}
|
|
60239
60234
|
function getApparentTypeOfContextualType(node, contextFlags) {
|
|
60240
60235
|
var contextualType = ts.isObjectLiteralMethod(node) ?
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220326";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -55915,11 +55915,16 @@ var ts;
|
|
|
55915
55915
|
}
|
|
55916
55916
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
55917
55917
|
if (!popTypeResolution()) {
|
|
55918
|
-
|
|
55919
|
-
if (
|
|
55920
|
-
|
|
55921
|
-
|
|
55918
|
+
var getter = ts.getDeclarationOfKind(symbol, 172 /* GetAccessor */);
|
|
55919
|
+
if (getter) {
|
|
55920
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
55921
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
55922
|
+
}
|
|
55923
|
+
else if (noImplicitAny) {
|
|
55924
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
55925
|
+
}
|
|
55922
55926
|
}
|
|
55927
|
+
type = anyType;
|
|
55923
55928
|
}
|
|
55924
55929
|
return type;
|
|
55925
55930
|
}
|
|
@@ -72089,21 +72094,11 @@ var ts;
|
|
|
72089
72094
|
}
|
|
72090
72095
|
return false;
|
|
72091
72096
|
}
|
|
72092
|
-
function uniqueStrings(strings) {
|
|
72093
|
-
var unique = new ts.Set(strings);
|
|
72094
|
-
var result = [];
|
|
72095
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
72096
|
-
return result;
|
|
72097
|
-
}
|
|
72098
72097
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
72099
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
72100
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72101
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72098
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72102
72099
|
}
|
|
72103
72100
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
72104
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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(
|
|
72105
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72106
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72101
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72107
72102
|
}
|
|
72108
72103
|
// Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily
|
|
72109
72104
|
// be "pushed" onto a node using the contextualType property.
|
|
@@ -138418,18 +138413,9 @@ var ts;
|
|
|
138418
138413
|
JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
|
|
138419
138414
|
function getDisplayPartsFromComment(comment, checker) {
|
|
138420
138415
|
if (typeof comment === "string") {
|
|
138421
|
-
return [ts.textPart(
|
|
138416
|
+
return [ts.textPart(comment)];
|
|
138422
138417
|
}
|
|
138423
|
-
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(
|
|
138424
|
-
}
|
|
138425
|
-
function skipSeparatorFromComment(text) {
|
|
138426
|
-
var pos = 0;
|
|
138427
|
-
if (text.charCodeAt(pos++) === 45 /* minus */) {
|
|
138428
|
-
while (pos < text.length && text.charCodeAt(pos) === 32 /* space */)
|
|
138429
|
-
pos++;
|
|
138430
|
-
return text.slice(pos);
|
|
138431
|
-
}
|
|
138432
|
-
return text;
|
|
138418
|
+
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(node.text)] : ts.buildLinkParts(node, checker); });
|
|
138433
138419
|
}
|
|
138434
138420
|
function getCommentDisplayParts(tag, checker) {
|
|
138435
138421
|
var comment = tag.comment, kind = tag.kind;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220326";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -56109,11 +56109,16 @@ var ts;
|
|
|
56109
56109
|
}
|
|
56110
56110
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
56111
56111
|
if (!popTypeResolution()) {
|
|
56112
|
-
|
|
56113
|
-
if (
|
|
56114
|
-
|
|
56115
|
-
|
|
56112
|
+
var getter = ts.getDeclarationOfKind(symbol, 172 /* GetAccessor */);
|
|
56113
|
+
if (getter) {
|
|
56114
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
56115
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
56116
|
+
}
|
|
56117
|
+
else if (noImplicitAny) {
|
|
56118
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
56119
|
+
}
|
|
56116
56120
|
}
|
|
56121
|
+
type = anyType;
|
|
56117
56122
|
}
|
|
56118
56123
|
return type;
|
|
56119
56124
|
}
|
|
@@ -72283,21 +72288,11 @@ var ts;
|
|
|
72283
72288
|
}
|
|
72284
72289
|
return false;
|
|
72285
72290
|
}
|
|
72286
|
-
function uniqueStrings(strings) {
|
|
72287
|
-
var unique = new ts.Set(strings);
|
|
72288
|
-
var result = [];
|
|
72289
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
72290
|
-
return result;
|
|
72291
|
-
}
|
|
72292
72291
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
72293
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
72294
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72295
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72292
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72296
72293
|
}
|
|
72297
72294
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
72298
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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(
|
|
72299
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72300
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72295
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72301
72296
|
}
|
|
72302
72297
|
// Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily
|
|
72303
72298
|
// be "pushed" onto a node using the contextualType property.
|
|
@@ -139029,18 +139024,9 @@ var ts;
|
|
|
139029
139024
|
JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
|
|
139030
139025
|
function getDisplayPartsFromComment(comment, checker) {
|
|
139031
139026
|
if (typeof comment === "string") {
|
|
139032
|
-
return [ts.textPart(
|
|
139027
|
+
return [ts.textPart(comment)];
|
|
139033
139028
|
}
|
|
139034
|
-
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(
|
|
139035
|
-
}
|
|
139036
|
-
function skipSeparatorFromComment(text) {
|
|
139037
|
-
var pos = 0;
|
|
139038
|
-
if (text.charCodeAt(pos++) === 45 /* minus */) {
|
|
139039
|
-
while (pos < text.length && text.charCodeAt(pos) === 32 /* space */)
|
|
139040
|
-
pos++;
|
|
139041
|
-
return text.slice(pos);
|
|
139042
|
-
}
|
|
139043
|
-
return text;
|
|
139029
|
+
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(node.text)] : ts.buildLinkParts(node, checker); });
|
|
139044
139030
|
}
|
|
139045
139031
|
function getCommentDisplayParts(tag, checker) {
|
|
139046
139032
|
var comment = tag.comment, kind = tag.kind;
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220326";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -56109,11 +56109,16 @@ var ts;
|
|
|
56109
56109
|
}
|
|
56110
56110
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
56111
56111
|
if (!popTypeResolution()) {
|
|
56112
|
-
|
|
56113
|
-
if (
|
|
56114
|
-
|
|
56115
|
-
|
|
56112
|
+
var getter = ts.getDeclarationOfKind(symbol, 172 /* GetAccessor */);
|
|
56113
|
+
if (getter) {
|
|
56114
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
56115
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
56116
|
+
}
|
|
56117
|
+
else if (noImplicitAny) {
|
|
56118
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
56119
|
+
}
|
|
56116
56120
|
}
|
|
56121
|
+
type = anyType;
|
|
56117
56122
|
}
|
|
56118
56123
|
return type;
|
|
56119
56124
|
}
|
|
@@ -72283,21 +72288,11 @@ var ts;
|
|
|
72283
72288
|
}
|
|
72284
72289
|
return false;
|
|
72285
72290
|
}
|
|
72286
|
-
function uniqueStrings(strings) {
|
|
72287
|
-
var unique = new ts.Set(strings);
|
|
72288
|
-
var result = [];
|
|
72289
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
72290
|
-
return result;
|
|
72291
|
-
}
|
|
72292
72291
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
72293
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
72294
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72295
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72292
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72296
72293
|
}
|
|
72297
72294
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
72298
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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(
|
|
72299
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72300
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72295
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72301
72296
|
}
|
|
72302
72297
|
// Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily
|
|
72303
72298
|
// be "pushed" onto a node using the contextualType property.
|
|
@@ -139029,18 +139024,9 @@ var ts;
|
|
|
139029
139024
|
JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
|
|
139030
139025
|
function getDisplayPartsFromComment(comment, checker) {
|
|
139031
139026
|
if (typeof comment === "string") {
|
|
139032
|
-
return [ts.textPart(
|
|
139027
|
+
return [ts.textPart(comment)];
|
|
139033
139028
|
}
|
|
139034
|
-
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(
|
|
139035
|
-
}
|
|
139036
|
-
function skipSeparatorFromComment(text) {
|
|
139037
|
-
var pos = 0;
|
|
139038
|
-
if (text.charCodeAt(pos++) === 45 /* minus */) {
|
|
139039
|
-
while (pos < text.length && text.charCodeAt(pos) === 32 /* space */)
|
|
139040
|
-
pos++;
|
|
139041
|
-
return text.slice(pos);
|
|
139042
|
-
}
|
|
139043
|
-
return text;
|
|
139029
|
+
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(node.text)] : ts.buildLinkParts(node, checker); });
|
|
139044
139030
|
}
|
|
139045
139031
|
function getCommentDisplayParts(tag, checker) {
|
|
139046
139032
|
var comment = tag.comment, kind = tag.kind;
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220326";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -56109,11 +56109,16 @@ var ts;
|
|
|
56109
56109
|
}
|
|
56110
56110
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
56111
56111
|
if (!popTypeResolution()) {
|
|
56112
|
-
|
|
56113
|
-
if (
|
|
56114
|
-
|
|
56115
|
-
|
|
56112
|
+
var getter = ts.getDeclarationOfKind(symbol, 172 /* GetAccessor */);
|
|
56113
|
+
if (getter) {
|
|
56114
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
56115
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
56116
|
+
}
|
|
56117
|
+
else if (noImplicitAny) {
|
|
56118
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
56119
|
+
}
|
|
56116
56120
|
}
|
|
56121
|
+
type = anyType;
|
|
56117
56122
|
}
|
|
56118
56123
|
return type;
|
|
56119
56124
|
}
|
|
@@ -72283,21 +72288,11 @@ var ts;
|
|
|
72283
72288
|
}
|
|
72284
72289
|
return false;
|
|
72285
72290
|
}
|
|
72286
|
-
function uniqueStrings(strings) {
|
|
72287
|
-
var unique = new ts.Set(strings);
|
|
72288
|
-
var result = [];
|
|
72289
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
72290
|
-
return result;
|
|
72291
|
-
}
|
|
72292
72291
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
72293
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
72294
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72295
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72292
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72296
72293
|
}
|
|
72297
72294
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
72298
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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(
|
|
72299
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72300
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72295
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72301
72296
|
}
|
|
72302
72297
|
// Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily
|
|
72303
72298
|
// be "pushed" onto a node using the contextualType property.
|
|
@@ -139029,18 +139024,9 @@ var ts;
|
|
|
139029
139024
|
JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
|
|
139030
139025
|
function getDisplayPartsFromComment(comment, checker) {
|
|
139031
139026
|
if (typeof comment === "string") {
|
|
139032
|
-
return [ts.textPart(
|
|
139027
|
+
return [ts.textPart(comment)];
|
|
139033
139028
|
}
|
|
139034
|
-
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(
|
|
139035
|
-
}
|
|
139036
|
-
function skipSeparatorFromComment(text) {
|
|
139037
|
-
var pos = 0;
|
|
139038
|
-
if (text.charCodeAt(pos++) === 45 /* minus */) {
|
|
139039
|
-
while (pos < text.length && text.charCodeAt(pos) === 32 /* space */)
|
|
139040
|
-
pos++;
|
|
139041
|
-
return text.slice(pos);
|
|
139042
|
-
}
|
|
139043
|
-
return text;
|
|
139029
|
+
return ts.flatMap(comment, function (node) { return node.kind === 321 /* JSDocText */ ? [ts.textPart(node.text)] : ts.buildLinkParts(node, checker); });
|
|
139044
139030
|
}
|
|
139045
139031
|
function getCommentDisplayParts(tag, checker) {
|
|
139046
139032
|
var comment = tag.comment, kind = tag.kind;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220326";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -55904,11 +55904,16 @@ var ts;
|
|
|
55904
55904
|
}
|
|
55905
55905
|
var type = resolveTypeOfAccessors(symbol, writing);
|
|
55906
55906
|
if (!popTypeResolution()) {
|
|
55907
|
-
|
|
55908
|
-
if (
|
|
55909
|
-
|
|
55910
|
-
|
|
55907
|
+
var getter = ts.getDeclarationOfKind(symbol, 172 /* GetAccessor */);
|
|
55908
|
+
if (getter) {
|
|
55909
|
+
if (ts.getEffectiveTypeAnnotationNode(getter)) {
|
|
55910
|
+
error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
|
|
55911
|
+
}
|
|
55912
|
+
else if (noImplicitAny) {
|
|
55913
|
+
error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
|
|
55914
|
+
}
|
|
55911
55915
|
}
|
|
55916
|
+
type = anyType;
|
|
55912
55917
|
}
|
|
55913
55918
|
return type;
|
|
55914
55919
|
}
|
|
@@ -72078,21 +72083,11 @@ var ts;
|
|
|
72078
72083
|
}
|
|
72079
72084
|
return false;
|
|
72080
72085
|
}
|
|
72081
|
-
function uniqueStrings(strings) {
|
|
72082
|
-
var unique = new ts.Set(strings);
|
|
72083
|
-
var result = [];
|
|
72084
|
-
unique.forEach(function (str) { return result.push(str); });
|
|
72085
|
-
return result;
|
|
72086
|
-
}
|
|
72087
72086
|
function discriminateContextualTypeByObjectMembers(node, contextualType) {
|
|
72088
|
-
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(
|
|
72089
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72090
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72087
|
+
return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 296 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72091
72088
|
}
|
|
72092
72089
|
function discriminateContextualTypeByJSXAttributes(node, contextualType) {
|
|
72093
|
-
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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(
|
|
72094
|
-
return ts.map(ts.filter(getPropertiesOfType(memberType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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; });
|
|
72095
|
-
})), function (name) { return [function () { return undefinedType; }, name]; })), isTypeAssignableTo, contextualType);
|
|
72090
|
+
return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 285 /* JsxAttribute */ && 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.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_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 [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);
|
|
72096
72091
|
}
|
|
72097
72092
|
// Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily
|
|
72098
72093
|
// be "pushed" onto a node using the contextualType property.
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "当指定使用 \"jsxFactory\" 编译器选项面向 \"react\" JSX 发出时,指定要使用的 JSX 片段工厂函数,例如 \"Fragment\"。",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "指定基目录以解析非相关模块名称。",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "指定发出文件时要使用的行序列结尾: \"CRLF\" (dos)或 \"LF\" (unix)。",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "指定 .tsbuildinfo 增量编译文件的文件夹。",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "指定调试调试程序应将 TypeScript 文件放置到的位置而不是源位置。",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "指定调试程序应将映射文件放置到的位置而不是生成的位置。",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "指定用于从 “node_modules” 检查 JavaScript 文件的最大文件夹深度。仅适用于 “allowJs”。",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "指定要用于从 eg,react 中导入 “jsx” 和 “jsxs” 工厂函数的模块说明符",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "指定为 “createElement” 调用的对象。这仅适用于将 “react” JSX 发出设定为目标的情况。",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "指定已生成声明文件的输出目录。",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "指定 .tsbuildinfo 增量编译文件的路径。",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "指定输入文件的根目录。与 --outDir 一起用于控制输出目录结构。",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "指定源文件中的根文件夹。",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "指定调试程序的根路径以查找引用源代码。",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "不能将类型“{0}”分配给类型“{1}”。",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "类型“{0}”不可分配给类型“{1}”。你的意思是“{2}”?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "类型“{0}”无法分配给类型“{1}”。存在具有此名称的两种不同类型,但它们是不相关的。",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "类型“{0}”不能分配给类型“{1}”,如方差批注所示。",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "类型 “{0}” 不能分配给“exactOptionalPropertyTypes: true”的类型 “{1}”。请考虑将 “undefined” 添加到目标属性的类型。",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "类型 “{0}” 不能分配给“exactOptionalPropertyTypes: true”的类型 “{1}”。请考虑将 “undefined” 添加到目标类型。。",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "类型“{0}”不可与类型“{1}”进行比较。",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "多次指定了 \"{0}\",因此将重写此用法。",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "“{0}”列表不能为空。",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "已看到“{0}”修饰符。",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "“{0}”修饰符只能出现在类、接口或类型别名的类型参数上",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "“{0}”修饰符不能出现在构造函数声明中。",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "“{0}”修饰符不可出现在模块或命名空间元素上。",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "“{0}”修饰符不能出现在参数中。",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "“{0}”修饰符不可出现在类型成员上。",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "“{0}”修饰符不能出现在类型参数上",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "“{0}”修饰符不可出现在索引签名上。",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "“{0}”修饰符不能出现在此类型的类元素上。",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "“{0}”修饰符不能在此处使用。",
|
|
@@ -1311,13 +1311,13 @@
|
|
|
1311
1311
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "當指定以 'jsxFactory' 編譯器選項設定 'react' JSX 輸出的目標時,請指定要使用的 JSX 片段處理站函式,例如 'Fragment'。",
|
|
1312
1312
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "指定基礎目錄來解析非相對的模組名稱。",
|
|
1313
1313
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "指定發出檔案時要用的行尾順序: 'CRLF' (DOS) 或 'LF' (UNIX)。",
|
|
1314
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "指定 .tsbuildinfo 累加編譯檔案的資料夾。",
|
|
1315
1314
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "指定偵錯工具尋找 TypeScript 檔案的位置,而非原始檔位置。",
|
|
1316
1315
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "指定偵錯工具尋找對應檔的位置,而非產生的位置。",
|
|
1317
1316
|
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "指定用來檢查來自 'node_modules' 之 JavaScript 檔案的資料夾深度上限。僅適用於 'allowJs'。",
|
|
1318
1317
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "指定用於匯入 `jsx` 與 `jsxs` 工廠函式的模組指定名稱。例如,傳送表情符號",
|
|
1319
1318
|
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "指定 'createElement' 叫用的物件。這僅適用於在以 'react' JSX 發出為目標時。",
|
|
1320
1319
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "指定產生的宣告檔案的輸出目錄。",
|
|
1320
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "指定 .tsbuildinfo 累加編譯檔案的路徑。",
|
|
1321
1321
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "指定輸入檔的根目錄。用以控制具有 --outDir 的輸出目錄結構。",
|
|
1322
1322
|
"Specify_the_root_folder_within_your_source_files_6690": "指定來源檔案內的根資料夾。",
|
|
1323
1323
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "指定偵錯工具尋找參考原始程式碼的根路徑。",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"Type_0_is_not_assignable_to_type_1_2322": "類型 '{0}' 不可指派給類型 '{1}'。",
|
|
1514
1514
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "不得將類型 '{0}' 指派給類型 '{1}'。您指的是 '{2}' 嗎?",
|
|
1515
1515
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "無法將類型 '{0}' 指派給類型 '{1}'。有兩種使用此名稱的不同類型存在,但彼此並不相關。",
|
|
1516
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "無法將型別 '{0}' 指派給型別 '{1}',如變異數註釋所隱含。",
|
|
1516
1517
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標屬性的類型。",
|
|
1517
1518
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標的類型。",
|
|
1518
1519
|
"Type_0_is_not_comparable_to_type_1_2678": "類型 '{0}' 無法和類型 '{1}' 比較。",
|
|
@@ -1690,10 +1691,12 @@
|
|
|
1690
1691
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "多次指定 '{0}',因此將會覆寫此使用方式。",
|
|
1691
1692
|
"_0_list_cannot_be_empty_1097": "'{0}' 清單不得為空白。",
|
|
1692
1693
|
"_0_modifier_already_seen_1030": "已有 '{0}' 修飾元。",
|
|
1694
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾元只能出現在類別、介面或型別別名的型別參數上",
|
|
1693
1695
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "建構函式宣告不得有 '{0}' 修飾元。",
|
|
1694
1696
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "模組或命名空間元素不能有 '{0}' 修飾元。",
|
|
1695
1697
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "參數不得有 '{0}' 修飾元。",
|
|
1696
1698
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "類型成員不能有 '{0}' 修飾元。",
|
|
1699
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "型別參數上不能出現 '{0}' 修飾元",
|
|
1697
1700
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "索引簽章不能有 '{0}' 修飾元。",
|
|
1698
1701
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "不得在此種類別項目中使用 '{0}' 修飾元。",
|
|
1699
1702
|
"_0_modifier_cannot_be_used_here_1042": "無法在此處使用 '{0}' 修飾元。",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.7.0-dev.
|
|
5
|
+
"version": "4.7.0-dev.20220326",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|