typescript 4.8.0-dev.20220620 → 4.8.0-dev.20220623
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 +5 -0
- package/lib/fr/diagnosticMessages.generated.json +5 -0
- package/lib/ja/diagnosticMessages.generated.json +5 -0
- package/lib/lib.es2017.intl.d.ts +16 -1
- package/lib/lib.es2021.intl.d.ts +4 -0
- package/lib/lib.es5.d.ts +12 -0
- package/lib/pl/diagnosticMessages.generated.json +5 -0
- package/lib/pt-br/diagnosticMessages.generated.json +5 -0
- package/lib/tsc.js +14 -9
- package/lib/tsserver.js +36 -11
- package/lib/tsserverlibrary.js +36 -11
- package/lib/typescript.js +36 -11
- package/lib/typescriptServices.js +36 -11
- package/lib/typingsInstaller.js +21 -9
- package/lib/zh-cn/diagnosticMessages.generated.json +5 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +5 -0
- package/package.json +1 -1
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== Direktiva odkazu na typ {0} se nepřeložila. ========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== Direktiva odkazu na typ {0} se úspěšně přeložila na {1}, primární: {2}. ========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== Direktiva odkazu na typ {0} se úspěšně přeložila na {1} s ID balíčku {2}, primární: {3}. ========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Typy se v deklaracích exportu v souborech JavaScriptu nemůžou vyskytovat.",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "Typy mají samostatné deklarace privátní vlastnosti {0}.",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "Typy signatur konstruktorů nejsou kompatibilní.",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "Typy parametrů {0} a {1} jsou nekompatibilní.",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Uzavřít následující kód, který by měl být literál objektu, do závorek",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Informace o všech možnostech kompilátoru najdete na {0}",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "Přes globální import se modul nedá přejmenovat.",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Nelze přejmenovat elementy definované ve složce node_modules.",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Nelze přejmenovat elementy definované v jiné složce node_modules.",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Nejde přejmenovat elementy definované ve standardní knihovně TypeScriptu.",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "Tento element nejde přejmenovat.",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "Objekt {0} přijímá málo argumentů k tomu, aby se dal použít jako dekoratér. Nechtěli jste ho nejprve volat a napsat @{0}()?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "Signatury indexu {0} jsou nekompatibilní.",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "{0} Typ indexu {1} se nedá přiřadit k {2} typu indexu {3}.",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0} je primitivum, ale {1} je obálkový objekt. Pokud je to možné, použijte raději {0}.",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "{0} je typ a nedá se importovat do javascriptových souborů. V poznámce typu JSDoc použijte {1}.",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Hodnota {0} je typ a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "{0} je nepoužívané přejmenování {1}. Chtěli jste ji použít jako poznámku typu?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "{0} se dá přiřadit k omezení typu {1}, ale pro {1} se dala vytvořit instance s jiným podtypem omezení {2}.",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "{0} se sem automaticky exportuje.",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "Deklaruje se {0}, ale jeho hodnota se vůbec nečte.",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "{0} se nadeklarovalo, ale nepoužilo.",
|
|
1700
1705
|
"_0_is_declared_here_2728": "{0} je deklarované tady.",
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== La directive de référence de type '{0}' n'a pas été résolue. ========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== La directive de référence de type '{0}' a été correctement résolue en '{1}', primaire : {2}. ========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== La directive de référence de type '{0}' a été correctement résolue en '{1}' avec l'ID de package '{2}', primaire : {3}. ========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Les types ne peuvent pas apparaître dans les déclarations d’exportation dans les fichiers JavaScript.",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "Les types ont des déclarations distinctes d'une propriété privée '{0}'.",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "Les types de signature de construction sont incompatibles.",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "Les types des paramètres '{0}' et '{1}' sont incompatibles.",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Placer le corps suivant entre parenthèses pour indiquer qu'il s'agit d'un littéral d'objet",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Vous pouvez en savoir plus sur toutes les options du compilateur sur {0}",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "Vous ne pouvez pas renommer un module via une importation globale.",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Vous ne pouvez pas renommer les éléments définis dans un dossier « node_modules ».",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Vous ne pouvez pas renommer les éléments définis dans un autre dossier « node_modules ».",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Vous ne pouvez pas renommer des éléments définis dans la bibliothèque TypeScript standard.",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "Vous ne pouvez pas renommer cet élément.",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' accepte trop peu d'arguments pour pouvoir être utilisé ici en tant qu'élément décoratif. Voulez-vous vraiment l'appeler d'abord et écrire '@{0}()' ?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "Les signatures d'index « {0} » sont incompatibles.",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Le type d’index « {0} », « {1} », ne peut pas être attribué au type d’index « {2} », « {3} ».",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' est une primitive, mais '{1}' est un objet wrapper. Si possible, utilisez '{0}' de préférence.",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' est un type qui ne peut pas être importé dans des fichiers JavaScript. Utilisez '{1}' dans une annotation de type JSDoc.",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "« {0} » est un type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "« {0} » est un changement de nom inutilisé de « {1} ». Souhaitiez-vous l’utiliser comme annotation de type?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' peut être assigné à la contrainte de type '{1}', mais '{1}' a pu être instancié avec un autre sous-type de contrainte '{2}'.",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "'{0}' est automatiquement exporté ici.",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' est déclaré mais sa valeur n'est jamais lue.",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "'{0}' est déclaré mais n'est jamais utilisé.",
|
|
1700
1705
|
"_0_is_declared_here_2728": "'{0}' est déclaré ici.",
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== 型参照ディレクティブ '{0}' が解決されませんでした。========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== 型参照ディレクティブ '{0}' が正常に '{1}' に解決されました。プライマリ: {2}。========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== 型参照ディレクティブ '{0}' が正常に '{1}' に解決されました (パッケージ ID '{2}'、プライマリ: {3})。========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "JavaScript ファイルのエクスポート宣言に型を含めることはできません。",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "複数の型に、プライベート プロパティ '{0}' の異なる宣言が含まれています。",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "コンストラクト シグネチャの型に互換性がありません。",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "パラメーター '{0}' および '{1}' は型に互換性がありません。",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "次の本体をかっこで囲みます。これはオブジェクト リテラルです",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "コンパイラ オプションの詳細については、{0} をご覧ください。",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "グローバル インポートを使用してモジュールの名前を変更することはできません。",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "'node_modules' フォルダーで定義されている要素の名前を変更することはできません。",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "別の 'node_modules' フォルダーで定義されている要素の名前を変更することはできません。",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "標準の TypeScript ライブラリで定義された要素の名前を変更することはできません。",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "この要素の名前を変更することはできません。",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' は受け入れる引数が少なすぎるので、ここでデコレーターとして使用することができません。最初にこれを呼び出してから、'@{0}()' を書き込むつもりでしたか?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "'{0}' インデックス シグネチャに互換性がありません。",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}'インデックス型'{1}' を '{2}'インデックス型'{3}' に割り当てることはできません。",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' はプリミティブですが、'{1}' はラッパー オブジェクトです。できれば '{0}' をご使用ください。",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' は型であるため、JavaScript ファイルにインポートできません。JSDoc 型の注釈で '{1}' を使用します。",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" は型であり、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートされる必要があります。",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' は、'{1}' の未使用の名前変更です。型の注釈として使用するつもりでしたか?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' は型 '{1}' の制約に代入できますが、'{1}' は制約 '{2}' の別のサブタイプでインスタンス化できることがあります。",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "`{0}` は自動的にここにエクスポートされます。",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' が宣言されていますが、その値が読み取られることはありません。",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "'{0}' は宣言されましたが使用されませんでした。",
|
|
1700
1705
|
"_0_is_declared_here_2728": "'{0}' はここで宣言されています。",
|
package/lib/lib.es2017.intl.d.ts
CHANGED
|
@@ -19,7 +19,22 @@ and limitations under the License.
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
declare namespace Intl {
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
interface DateTimeFormatPartTypesRegistry {
|
|
24
|
+
day: any
|
|
25
|
+
dayPeriod: any
|
|
26
|
+
era: any
|
|
27
|
+
hour: any
|
|
28
|
+
literal: any
|
|
29
|
+
minute: any
|
|
30
|
+
month: any
|
|
31
|
+
second: any
|
|
32
|
+
timeZoneName: any
|
|
33
|
+
weekday: any
|
|
34
|
+
year: any
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
|
|
23
38
|
|
|
24
39
|
interface DateTimeFormatPart {
|
|
25
40
|
type: DateTimeFormatPartTypes;
|
package/lib/lib.es2021.intl.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ and limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
declare namespace Intl {
|
|
22
22
|
|
|
23
|
+
interface DateTimeFormatPartTypesRegistry {
|
|
24
|
+
fractionalSecond: any
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
interface DateTimeFormatOptions {
|
|
24
28
|
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
|
|
25
29
|
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -933,12 +933,24 @@ interface DateConstructor {
|
|
|
933
933
|
declare var Date: DateConstructor;
|
|
934
934
|
|
|
935
935
|
interface RegExpMatchArray extends Array<string> {
|
|
936
|
+
/**
|
|
937
|
+
* The index of the search at which the result was found.
|
|
938
|
+
*/
|
|
936
939
|
index?: number;
|
|
940
|
+
/**
|
|
941
|
+
* A copy of the search string.
|
|
942
|
+
*/
|
|
937
943
|
input?: string;
|
|
938
944
|
}
|
|
939
945
|
|
|
940
946
|
interface RegExpExecArray extends Array<string> {
|
|
947
|
+
/**
|
|
948
|
+
* The index of the search at which the result was found.
|
|
949
|
+
*/
|
|
941
950
|
index: number;
|
|
951
|
+
/**
|
|
952
|
+
* A copy of the search string.
|
|
953
|
+
*/
|
|
942
954
|
input: string;
|
|
943
955
|
}
|
|
944
956
|
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== Dyrektywa odwołania do typu „{0}” nie została rozpoznana. ========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== Dyrektywa odwołania do typu „{0}” została pomyślnie rozpoznana jako „{1}”, podstawowe: {2}. ========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== Dyrektywa odwołania do typu „{0}” została pomyślnie rozpoznana jako „{1}” z identyfikatorem pakietu „{2}”, podstawowe: {3}. ========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Typy nie mogą występować w deklaracjach eksportu w plikach JavaScript.",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "Typy mają osobne deklaracje właściwości prywatnej „{0}”.",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "Typy sygnatur konstrukcji są niezgodne.",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "Typy parametrów „{0}” i „{1}” są niezgodne.",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Zawijaj następującą treść z nawiasami, która powinna być literałem obiektu",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "O wszystkich opcjach kompilatora przeczytasz na stronie {0}",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "Nie można zmienić nazwy modułu za pomocą importu globalnego.",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Nie można zmieniać nazw elementów zdefiniowanych w folderze „node_modules”.",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Nie można zmieniać nazw elementów zdefiniowanych w innym folderze „node_modules”.",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Nie można zmienić nazw elementów zdefiniowanych w standardowej bibliotece TypeScript.",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "Nie można zmienić nazwy tego elementu.",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "Element „{0}” akceptuje za mało argumentów, aby można go było użyć w tym miejscu jako dekorator. Czy chcesz najpierw go wywołać i zapisać tag „@{0}()”?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "Sygnatury indeksów „{0}” są niezgodne.",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Typu indeksu „{0}” „{1}” nie można przypisać do typu indeksu „{2}” „{3}”.",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "Element „{0}” jest elementem podstawowym, ale element „{1}” jest obiektem otoki. Preferuje się użycie elementu „{0}”, jeśli jest to możliwe.",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "„{0}” jest typem i nie można go zaimportować w plikach JavaScript. Użyj elementu „{1}” w adnotacji typu JSDoc.",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Element \"{0}\" jest typem i musi być importowany przy użyciu importu tylko typu, gdy są włączone opcje \"preserveValueImports\" i \"isolatedModules\".",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}” to nieużywana zmiana nazwy elementu „{1}”. Czy zamierzano używać go jako adnotacji typu?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "Element „{0}” można przypisać do ograniczenia typu „{1}”, ale wystąpienie typu „{1}” można utworzyć z innym podtypem ograniczenia „{2}”.",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "W tym miejscu jest automatycznie eksportowany element „{0}”.",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "Element „{0}” jest zadeklarowany, ale jego wartość nie jest nigdy odczytywana.",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "Element „{0}” jest zadeklarowany, ale nie jest nigdy używany.",
|
|
1700
1705
|
"_0_is_declared_here_2728": "Element „{0}” jest zadeklarowany tutaj.",
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== A diretiva de referência de tipo '{0}' não foi resolvida. ========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== A diretiva de referência de tipo '{0}' foi resolvida com sucesso para '{1}', primário: {2}. ========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== A diretiva de referência de tipo '{0}' foi resolvida com sucesso para '{1}' com a ID do Pacote '{2}', primário: {3}. ========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Os tipos não podem aparecer em declarações de exportação em arquivos JavaScript.",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "Tipos têm declarações separadas de uma propriedade privada '{0}'.",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "Os tipos de assinaturas de constructo são incompatíveis.",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "Os tipos de parâmetros '{0}' e '{1}' são incompatíveis.",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Colocar entre parênteses o corpo a seguir, que deve ser um literal de objeto",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Você pode aprender sobre todas as opções do compilador em {0}",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "Não é possível renomear um módulo por meio de uma importação global.",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Não é possível renomear elementos definidos em uma pasta 'node_modules'.",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Não é possível renomear elementos definidos em outra pasta 'node_modules'.",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Não é possível renomear elementos que são definidos na biblioteca TypeScript padrão.",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "Você não pode renomear este elemento.",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' aceita muito poucos argumentos para serem usados como um decorador aqui. Você quis dizer para chamá-lo primeiro e gravar '@{0}()'?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "'{0}' assinaturas de índice são incompatíveis.",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' tipo de índice '{1}' não pode ser atribuído a '{2}' tipo de índice '{3}'.",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' é um primitivo, mas '{1}' é um objeto de wrapper. Prefira usar '{0}' quando possível.",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' é um tipo e não pode ser importado em arquivos JavaScript. Use '{1}' em uma anotação de tipo JSDoc.",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' é um tipo e deve ser importado usando uma importação somente de tipo quando 'preserveValueImports' e 'isolatedModules' estiverem habilitados.",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' é uma renomeação não usada de '{1}'. Você pretendia usá-lo como uma anotação de tipo?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' é atribuível à restrição do tipo '{1}', mas é possível criar uma instância de '{1}' com um subtipo diferente de restrição '{2}'.",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "'{0}' é exportado automaticamente aqui.",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' é declarado, mas seu valor nunca é lido.",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "'{0}' está declarado, mas nunca foi usado.",
|
|
1700
1705
|
"_0_is_declared_here_2728": "'{0}' é declarado aqui.",
|
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.20220623";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -40238,6 +40238,9 @@ var ts;
|
|
|
40238
40238
|
var markerSubType = createTypeParameter();
|
|
40239
40239
|
markerSubType.constraint = markerSuperType;
|
|
40240
40240
|
var markerOtherType = createTypeParameter();
|
|
40241
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
40242
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
40243
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
40241
40244
|
var noTypePredicate = createTypePredicate(1, "<<unresolved>>", 0, anyType);
|
|
40242
40245
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, undefined, 0, 0);
|
|
40243
40246
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, undefined, 0, 0);
|
|
@@ -43595,8 +43598,8 @@ var ts;
|
|
|
43595
43598
|
if (type.symbol) {
|
|
43596
43599
|
return symbolToTypeNode(type.symbol, context, 788968);
|
|
43597
43600
|
}
|
|
43598
|
-
var name = (type ===
|
|
43599
|
-
(type ===
|
|
43601
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
43602
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
43600
43603
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), undefined);
|
|
43601
43604
|
}
|
|
43602
43605
|
if (type.flags & 1048576 && type.origin) {
|
|
@@ -53828,7 +53831,7 @@ var ts;
|
|
|
53828
53831
|
});
|
|
53829
53832
|
}
|
|
53830
53833
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
53831
|
-
if (target.flags & 131068)
|
|
53834
|
+
if (target.flags & (131068 | 131072))
|
|
53832
53835
|
return false;
|
|
53833
53836
|
if (isTupleLikeType(source)) {
|
|
53834
53837
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -53893,7 +53896,7 @@ var ts;
|
|
|
53893
53896
|
});
|
|
53894
53897
|
}
|
|
53895
53898
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
53896
|
-
if (target.flags & 131068)
|
|
53899
|
+
if (target.flags & (131068 | 131072))
|
|
53897
53900
|
return false;
|
|
53898
53901
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
53899
53902
|
}
|
|
@@ -54431,7 +54434,7 @@ var ts;
|
|
|
54431
54434
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
54432
54435
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
54433
54436
|
}
|
|
54434
|
-
if (target.flags & 262144 && target !==
|
|
54437
|
+
if (target.flags & 262144 && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
54435
54438
|
var constraint = getBaseConstraintOfType(target);
|
|
54436
54439
|
var needsOriginalSource = void 0;
|
|
54437
54440
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -64069,6 +64072,8 @@ var ts;
|
|
|
64069
64072
|
if (result) {
|
|
64070
64073
|
return result;
|
|
64071
64074
|
}
|
|
64075
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
64076
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
64072
64077
|
if (reportErrors) {
|
|
64073
64078
|
if (candidatesForArgumentError) {
|
|
64074
64079
|
if (candidatesForArgumentError.length === 1 || candidatesForArgumentError.length > 3) {
|
|
@@ -64154,7 +64159,7 @@ var ts;
|
|
|
64154
64159
|
}
|
|
64155
64160
|
}
|
|
64156
64161
|
}
|
|
64157
|
-
return
|
|
64162
|
+
return result;
|
|
64158
64163
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
64159
64164
|
var _a, _b;
|
|
64160
64165
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -67539,8 +67544,8 @@ var ts;
|
|
|
67539
67544
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
67540
67545
|
}
|
|
67541
67546
|
else if (modifiers === 32768 || modifiers === 65536) {
|
|
67542
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 ?
|
|
67543
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 ?
|
|
67547
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
67548
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
67544
67549
|
var saveVarianceTypeParameter = typeParameter;
|
|
67545
67550
|
varianceTypeParameter = typeParameter;
|
|
67546
67551
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
112
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220623";
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -49109,6 +49109,9 @@ var ts;
|
|
|
49109
49109
|
var markerSubType = createTypeParameter();
|
|
49110
49110
|
markerSubType.constraint = markerSuperType;
|
|
49111
49111
|
var markerOtherType = createTypeParameter();
|
|
49112
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
49113
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
49114
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
49112
49115
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
49113
49116
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
49114
49117
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
@@ -52945,8 +52948,8 @@ var ts;
|
|
|
52945
52948
|
if (type.symbol) {
|
|
52946
52949
|
return symbolToTypeNode(type.symbol, context, 788968 /* Type */);
|
|
52947
52950
|
}
|
|
52948
|
-
var name = (type ===
|
|
52949
|
-
(type ===
|
|
52951
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
52952
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
52950
52953
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), /*typeArguments*/ undefined);
|
|
52951
52954
|
}
|
|
52952
52955
|
if (type.flags & 1048576 /* Union */ && type.origin) {
|
|
@@ -64627,7 +64630,7 @@ var ts;
|
|
|
64627
64630
|
});
|
|
64628
64631
|
}
|
|
64629
64632
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64630
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64633
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64631
64634
|
return false;
|
|
64632
64635
|
if (isTupleLikeType(source)) {
|
|
64633
64636
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -64694,7 +64697,7 @@ var ts;
|
|
|
64694
64697
|
});
|
|
64695
64698
|
}
|
|
64696
64699
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64697
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64700
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64698
64701
|
return false;
|
|
64699
64702
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
64700
64703
|
}
|
|
@@ -65293,7 +65296,7 @@ var ts;
|
|
|
65293
65296
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
65294
65297
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
65295
65298
|
}
|
|
65296
|
-
if (target.flags & 262144 /* TypeParameter */ && target !==
|
|
65299
|
+
if (target.flags & 262144 /* TypeParameter */ && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
65297
65300
|
var constraint = getBaseConstraintOfType(target);
|
|
65298
65301
|
var needsOriginalSource = void 0;
|
|
65299
65302
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -76640,6 +76643,15 @@ var ts;
|
|
|
76640
76643
|
if (result) {
|
|
76641
76644
|
return result;
|
|
76642
76645
|
}
|
|
76646
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
76647
|
+
// Preemptively cache the result; getResolvedSignature will do this after we return, but
|
|
76648
|
+
// we need to ensure that the result is present for the error checks below so that if
|
|
76649
|
+
// this signature is encountered again, we handle the circularity (rather than producing a
|
|
76650
|
+
// different result which may produce no errors and assert). Callers of getResolvedSignature
|
|
76651
|
+
// don't hit this issue because they only observe this result after it's had a chance to
|
|
76652
|
+
// be cached, but the error reporting code below executes before getResolvedSignature sets
|
|
76653
|
+
// resolvedSignature.
|
|
76654
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
76643
76655
|
// No signatures were applicable. Now report errors based on the last applicable signature with
|
|
76644
76656
|
// no arguments excluded from assignability checks.
|
|
76645
76657
|
// If candidate is undefined, it means that no candidates had a suitable arity. In that case,
|
|
@@ -76731,7 +76743,7 @@ var ts;
|
|
|
76731
76743
|
}
|
|
76732
76744
|
}
|
|
76733
76745
|
}
|
|
76734
|
-
return
|
|
76746
|
+
return result;
|
|
76735
76747
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
76736
76748
|
var _a, _b;
|
|
76737
76749
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -80534,8 +80546,8 @@ var ts;
|
|
|
80534
80546
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
80535
80547
|
}
|
|
80536
80548
|
else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) {
|
|
80537
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80538
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80549
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
80550
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
80539
80551
|
var saveVarianceTypeParameter = typeParameter;
|
|
80540
80552
|
varianceTypeParameter = typeParameter;
|
|
80541
80553
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
|
@@ -129769,7 +129781,7 @@ var ts;
|
|
|
129769
129781
|
for (var _b = 0, textChanges_1 = textChanges_2; _b < textChanges_1.length; _b++) {
|
|
129770
129782
|
var change = textChanges_1[_b];
|
|
129771
129783
|
var span = change.span, newText = change.newText;
|
|
129772
|
-
var index = indexInTextChange(newText, name);
|
|
129784
|
+
var index = indexInTextChange(newText, ts.escapeString(name));
|
|
129773
129785
|
if (index !== -1) {
|
|
129774
129786
|
lastPos = span.start + delta + index;
|
|
129775
129787
|
// If the reference comes first, return immediately.
|
|
@@ -136199,6 +136211,10 @@ var ts;
|
|
|
136199
136211
|
}
|
|
136200
136212
|
break;
|
|
136201
136213
|
case 79 /* Identifier */: {
|
|
136214
|
+
var originalKeywordKind = location.originalKeywordKind;
|
|
136215
|
+
if (originalKeywordKind && ts.isKeyword(originalKeywordKind)) {
|
|
136216
|
+
return undefined;
|
|
136217
|
+
}
|
|
136202
136218
|
// class c { public prop = c| }
|
|
136203
136219
|
if (ts.isPropertyDeclaration(location.parent) && location.parent.initializer === location) {
|
|
136204
136220
|
return undefined;
|
|
@@ -156140,7 +156156,7 @@ var ts;
|
|
|
156140
156156
|
var checker = context.program.getTypeChecker();
|
|
156141
156157
|
var props = ts.map(info.properties, function (prop) {
|
|
156142
156158
|
var initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), info.parentDeclaration);
|
|
156143
|
-
return ts.factory.createPropertyAssignment(
|
|
156159
|
+
return ts.factory.createPropertyAssignment(createPropertyNameFromSymbol(prop, target, quotePreference, checker), initializer);
|
|
156144
156160
|
});
|
|
156145
156161
|
var options = {
|
|
156146
156162
|
leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,
|
|
@@ -156260,6 +156276,15 @@ var ts;
|
|
|
156260
156276
|
var declaration = ts.findAncestor(callExpression, function (n) { return ts.isMethodDeclaration(n) || ts.isConstructorDeclaration(n); });
|
|
156261
156277
|
return declaration && declaration.parent === node ? declaration : undefined;
|
|
156262
156278
|
}
|
|
156279
|
+
function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) {
|
|
156280
|
+
if (ts.isTransientSymbol(symbol) && symbol.nameType && symbol.nameType.flags & 8192 /* UniqueESSymbol */) {
|
|
156281
|
+
var expression = checker.symbolToExpression(symbol.nameType.symbol, 111551 /* Value */, symbol.valueDeclaration, 1048576 /* AllowUniqueESSymbolType */);
|
|
156282
|
+
if (expression) {
|
|
156283
|
+
return ts.factory.createComputedPropertyName(expression);
|
|
156284
|
+
}
|
|
156285
|
+
}
|
|
156286
|
+
return ts.createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === 0 /* Single */);
|
|
156287
|
+
}
|
|
156263
156288
|
})(codefix = ts.codefix || (ts.codefix = {}));
|
|
156264
156289
|
})(ts || (ts = {}));
|
|
156265
156290
|
/* @internal */
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -303,7 +303,7 @@ var ts;
|
|
|
303
303
|
// The following is baselined as a literal template type without intervention
|
|
304
304
|
/** The version of the TypeScript compiler release */
|
|
305
305
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
306
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
306
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220623";
|
|
307
307
|
/* @internal */
|
|
308
308
|
var Comparison;
|
|
309
309
|
(function (Comparison) {
|
|
@@ -49303,6 +49303,9 @@ var ts;
|
|
|
49303
49303
|
var markerSubType = createTypeParameter();
|
|
49304
49304
|
markerSubType.constraint = markerSuperType;
|
|
49305
49305
|
var markerOtherType = createTypeParameter();
|
|
49306
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
49307
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
49308
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
49306
49309
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
49307
49310
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
49308
49311
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
@@ -53139,8 +53142,8 @@ var ts;
|
|
|
53139
53142
|
if (type.symbol) {
|
|
53140
53143
|
return symbolToTypeNode(type.symbol, context, 788968 /* Type */);
|
|
53141
53144
|
}
|
|
53142
|
-
var name = (type ===
|
|
53143
|
-
(type ===
|
|
53145
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
53146
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
53144
53147
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), /*typeArguments*/ undefined);
|
|
53145
53148
|
}
|
|
53146
53149
|
if (type.flags & 1048576 /* Union */ && type.origin) {
|
|
@@ -64821,7 +64824,7 @@ var ts;
|
|
|
64821
64824
|
});
|
|
64822
64825
|
}
|
|
64823
64826
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64824
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64827
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64825
64828
|
return false;
|
|
64826
64829
|
if (isTupleLikeType(source)) {
|
|
64827
64830
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -64888,7 +64891,7 @@ var ts;
|
|
|
64888
64891
|
});
|
|
64889
64892
|
}
|
|
64890
64893
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64891
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64894
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64892
64895
|
return false;
|
|
64893
64896
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
64894
64897
|
}
|
|
@@ -65487,7 +65490,7 @@ var ts;
|
|
|
65487
65490
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
65488
65491
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
65489
65492
|
}
|
|
65490
|
-
if (target.flags & 262144 /* TypeParameter */ && target !==
|
|
65493
|
+
if (target.flags & 262144 /* TypeParameter */ && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
65491
65494
|
var constraint = getBaseConstraintOfType(target);
|
|
65492
65495
|
var needsOriginalSource = void 0;
|
|
65493
65496
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -76834,6 +76837,15 @@ var ts;
|
|
|
76834
76837
|
if (result) {
|
|
76835
76838
|
return result;
|
|
76836
76839
|
}
|
|
76840
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
76841
|
+
// Preemptively cache the result; getResolvedSignature will do this after we return, but
|
|
76842
|
+
// we need to ensure that the result is present for the error checks below so that if
|
|
76843
|
+
// this signature is encountered again, we handle the circularity (rather than producing a
|
|
76844
|
+
// different result which may produce no errors and assert). Callers of getResolvedSignature
|
|
76845
|
+
// don't hit this issue because they only observe this result after it's had a chance to
|
|
76846
|
+
// be cached, but the error reporting code below executes before getResolvedSignature sets
|
|
76847
|
+
// resolvedSignature.
|
|
76848
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
76837
76849
|
// No signatures were applicable. Now report errors based on the last applicable signature with
|
|
76838
76850
|
// no arguments excluded from assignability checks.
|
|
76839
76851
|
// If candidate is undefined, it means that no candidates had a suitable arity. In that case,
|
|
@@ -76925,7 +76937,7 @@ var ts;
|
|
|
76925
76937
|
}
|
|
76926
76938
|
}
|
|
76927
76939
|
}
|
|
76928
|
-
return
|
|
76940
|
+
return result;
|
|
76929
76941
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
76930
76942
|
var _a, _b;
|
|
76931
76943
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -80728,8 +80740,8 @@ var ts;
|
|
|
80728
80740
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
80729
80741
|
}
|
|
80730
80742
|
else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) {
|
|
80731
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80732
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80743
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
80744
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
80733
80745
|
var saveVarianceTypeParameter = typeParameter;
|
|
80734
80746
|
varianceTypeParameter = typeParameter;
|
|
80735
80747
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
|
@@ -130382,7 +130394,7 @@ var ts;
|
|
|
130382
130394
|
for (var _b = 0, textChanges_1 = textChanges_2; _b < textChanges_1.length; _b++) {
|
|
130383
130395
|
var change = textChanges_1[_b];
|
|
130384
130396
|
var span = change.span, newText = change.newText;
|
|
130385
|
-
var index = indexInTextChange(newText, name);
|
|
130397
|
+
var index = indexInTextChange(newText, ts.escapeString(name));
|
|
130386
130398
|
if (index !== -1) {
|
|
130387
130399
|
lastPos = span.start + delta + index;
|
|
130388
130400
|
// If the reference comes first, return immediately.
|
|
@@ -136812,6 +136824,10 @@ var ts;
|
|
|
136812
136824
|
}
|
|
136813
136825
|
break;
|
|
136814
136826
|
case 79 /* Identifier */: {
|
|
136827
|
+
var originalKeywordKind = location.originalKeywordKind;
|
|
136828
|
+
if (originalKeywordKind && ts.isKeyword(originalKeywordKind)) {
|
|
136829
|
+
return undefined;
|
|
136830
|
+
}
|
|
136815
136831
|
// class c { public prop = c| }
|
|
136816
136832
|
if (ts.isPropertyDeclaration(location.parent) && location.parent.initializer === location) {
|
|
136817
136833
|
return undefined;
|
|
@@ -156753,7 +156769,7 @@ var ts;
|
|
|
156753
156769
|
var checker = context.program.getTypeChecker();
|
|
156754
156770
|
var props = ts.map(info.properties, function (prop) {
|
|
156755
156771
|
var initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), info.parentDeclaration);
|
|
156756
|
-
return ts.factory.createPropertyAssignment(
|
|
156772
|
+
return ts.factory.createPropertyAssignment(createPropertyNameFromSymbol(prop, target, quotePreference, checker), initializer);
|
|
156757
156773
|
});
|
|
156758
156774
|
var options = {
|
|
156759
156775
|
leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,
|
|
@@ -156873,6 +156889,15 @@ var ts;
|
|
|
156873
156889
|
var declaration = ts.findAncestor(callExpression, function (n) { return ts.isMethodDeclaration(n) || ts.isConstructorDeclaration(n); });
|
|
156874
156890
|
return declaration && declaration.parent === node ? declaration : undefined;
|
|
156875
156891
|
}
|
|
156892
|
+
function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) {
|
|
156893
|
+
if (ts.isTransientSymbol(symbol) && symbol.nameType && symbol.nameType.flags & 8192 /* UniqueESSymbol */) {
|
|
156894
|
+
var expression = checker.symbolToExpression(symbol.nameType.symbol, 111551 /* Value */, symbol.valueDeclaration, 1048576 /* AllowUniqueESSymbolType */);
|
|
156895
|
+
if (expression) {
|
|
156896
|
+
return ts.factory.createComputedPropertyName(expression);
|
|
156897
|
+
}
|
|
156898
|
+
}
|
|
156899
|
+
return ts.createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === 0 /* Single */);
|
|
156900
|
+
}
|
|
156876
156901
|
})(codefix = ts.codefix || (ts.codefix = {}));
|
|
156877
156902
|
})(ts || (ts = {}));
|
|
156878
156903
|
/* @internal */
|
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.20220623";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -49294,6 +49294,9 @@ var ts;
|
|
|
49294
49294
|
var markerSubType = createTypeParameter();
|
|
49295
49295
|
markerSubType.constraint = markerSuperType;
|
|
49296
49296
|
var markerOtherType = createTypeParameter();
|
|
49297
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
49298
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
49299
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
49297
49300
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
49298
49301
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
49299
49302
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
@@ -53130,8 +53133,8 @@ var ts;
|
|
|
53130
53133
|
if (type.symbol) {
|
|
53131
53134
|
return symbolToTypeNode(type.symbol, context, 788968 /* Type */);
|
|
53132
53135
|
}
|
|
53133
|
-
var name = (type ===
|
|
53134
|
-
(type ===
|
|
53136
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
53137
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
53135
53138
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), /*typeArguments*/ undefined);
|
|
53136
53139
|
}
|
|
53137
53140
|
if (type.flags & 1048576 /* Union */ && type.origin) {
|
|
@@ -64812,7 +64815,7 @@ var ts;
|
|
|
64812
64815
|
});
|
|
64813
64816
|
}
|
|
64814
64817
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64815
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64818
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64816
64819
|
return false;
|
|
64817
64820
|
if (isTupleLikeType(source)) {
|
|
64818
64821
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -64879,7 +64882,7 @@ var ts;
|
|
|
64879
64882
|
});
|
|
64880
64883
|
}
|
|
64881
64884
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64882
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64885
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64883
64886
|
return false;
|
|
64884
64887
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
64885
64888
|
}
|
|
@@ -65478,7 +65481,7 @@ var ts;
|
|
|
65478
65481
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
65479
65482
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
65480
65483
|
}
|
|
65481
|
-
if (target.flags & 262144 /* TypeParameter */ && target !==
|
|
65484
|
+
if (target.flags & 262144 /* TypeParameter */ && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
65482
65485
|
var constraint = getBaseConstraintOfType(target);
|
|
65483
65486
|
var needsOriginalSource = void 0;
|
|
65484
65487
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -76825,6 +76828,15 @@ var ts;
|
|
|
76825
76828
|
if (result) {
|
|
76826
76829
|
return result;
|
|
76827
76830
|
}
|
|
76831
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
76832
|
+
// Preemptively cache the result; getResolvedSignature will do this after we return, but
|
|
76833
|
+
// we need to ensure that the result is present for the error checks below so that if
|
|
76834
|
+
// this signature is encountered again, we handle the circularity (rather than producing a
|
|
76835
|
+
// different result which may produce no errors and assert). Callers of getResolvedSignature
|
|
76836
|
+
// don't hit this issue because they only observe this result after it's had a chance to
|
|
76837
|
+
// be cached, but the error reporting code below executes before getResolvedSignature sets
|
|
76838
|
+
// resolvedSignature.
|
|
76839
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
76828
76840
|
// No signatures were applicable. Now report errors based on the last applicable signature with
|
|
76829
76841
|
// no arguments excluded from assignability checks.
|
|
76830
76842
|
// If candidate is undefined, it means that no candidates had a suitable arity. In that case,
|
|
@@ -76916,7 +76928,7 @@ var ts;
|
|
|
76916
76928
|
}
|
|
76917
76929
|
}
|
|
76918
76930
|
}
|
|
76919
|
-
return
|
|
76931
|
+
return result;
|
|
76920
76932
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
76921
76933
|
var _a, _b;
|
|
76922
76934
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -80719,8 +80731,8 @@ var ts;
|
|
|
80719
80731
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
80720
80732
|
}
|
|
80721
80733
|
else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) {
|
|
80722
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80723
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80734
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
80735
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
80724
80736
|
var saveVarianceTypeParameter = typeParameter;
|
|
80725
80737
|
varianceTypeParameter = typeParameter;
|
|
80726
80738
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
|
@@ -130373,7 +130385,7 @@ var ts;
|
|
|
130373
130385
|
for (var _b = 0, textChanges_1 = textChanges_2; _b < textChanges_1.length; _b++) {
|
|
130374
130386
|
var change = textChanges_1[_b];
|
|
130375
130387
|
var span = change.span, newText = change.newText;
|
|
130376
|
-
var index = indexInTextChange(newText, name);
|
|
130388
|
+
var index = indexInTextChange(newText, ts.escapeString(name));
|
|
130377
130389
|
if (index !== -1) {
|
|
130378
130390
|
lastPos = span.start + delta + index;
|
|
130379
130391
|
// If the reference comes first, return immediately.
|
|
@@ -136803,6 +136815,10 @@ var ts;
|
|
|
136803
136815
|
}
|
|
136804
136816
|
break;
|
|
136805
136817
|
case 79 /* Identifier */: {
|
|
136818
|
+
var originalKeywordKind = location.originalKeywordKind;
|
|
136819
|
+
if (originalKeywordKind && ts.isKeyword(originalKeywordKind)) {
|
|
136820
|
+
return undefined;
|
|
136821
|
+
}
|
|
136806
136822
|
// class c { public prop = c| }
|
|
136807
136823
|
if (ts.isPropertyDeclaration(location.parent) && location.parent.initializer === location) {
|
|
136808
136824
|
return undefined;
|
|
@@ -156744,7 +156760,7 @@ var ts;
|
|
|
156744
156760
|
var checker = context.program.getTypeChecker();
|
|
156745
156761
|
var props = ts.map(info.properties, function (prop) {
|
|
156746
156762
|
var initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), info.parentDeclaration);
|
|
156747
|
-
return ts.factory.createPropertyAssignment(
|
|
156763
|
+
return ts.factory.createPropertyAssignment(createPropertyNameFromSymbol(prop, target, quotePreference, checker), initializer);
|
|
156748
156764
|
});
|
|
156749
156765
|
var options = {
|
|
156750
156766
|
leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,
|
|
@@ -156864,6 +156880,15 @@ var ts;
|
|
|
156864
156880
|
var declaration = ts.findAncestor(callExpression, function (n) { return ts.isMethodDeclaration(n) || ts.isConstructorDeclaration(n); });
|
|
156865
156881
|
return declaration && declaration.parent === node ? declaration : undefined;
|
|
156866
156882
|
}
|
|
156883
|
+
function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) {
|
|
156884
|
+
if (ts.isTransientSymbol(symbol) && symbol.nameType && symbol.nameType.flags & 8192 /* UniqueESSymbol */) {
|
|
156885
|
+
var expression = checker.symbolToExpression(symbol.nameType.symbol, 111551 /* Value */, symbol.valueDeclaration, 1048576 /* AllowUniqueESSymbolType */);
|
|
156886
|
+
if (expression) {
|
|
156887
|
+
return ts.factory.createComputedPropertyName(expression);
|
|
156888
|
+
}
|
|
156889
|
+
}
|
|
156890
|
+
return ts.createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === 0 /* Single */);
|
|
156891
|
+
}
|
|
156867
156892
|
})(codefix = ts.codefix || (ts.codefix = {}));
|
|
156868
156893
|
})(ts || (ts = {}));
|
|
156869
156894
|
/* @internal */
|
|
@@ -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.20220623";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -49294,6 +49294,9 @@ var ts;
|
|
|
49294
49294
|
var markerSubType = createTypeParameter();
|
|
49295
49295
|
markerSubType.constraint = markerSuperType;
|
|
49296
49296
|
var markerOtherType = createTypeParameter();
|
|
49297
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
49298
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
49299
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
49297
49300
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
49298
49301
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
49299
49302
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
@@ -53130,8 +53133,8 @@ var ts;
|
|
|
53130
53133
|
if (type.symbol) {
|
|
53131
53134
|
return symbolToTypeNode(type.symbol, context, 788968 /* Type */);
|
|
53132
53135
|
}
|
|
53133
|
-
var name = (type ===
|
|
53134
|
-
(type ===
|
|
53136
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
53137
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
53135
53138
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), /*typeArguments*/ undefined);
|
|
53136
53139
|
}
|
|
53137
53140
|
if (type.flags & 1048576 /* Union */ && type.origin) {
|
|
@@ -64812,7 +64815,7 @@ var ts;
|
|
|
64812
64815
|
});
|
|
64813
64816
|
}
|
|
64814
64817
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64815
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64818
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64816
64819
|
return false;
|
|
64817
64820
|
if (isTupleLikeType(source)) {
|
|
64818
64821
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -64879,7 +64882,7 @@ var ts;
|
|
|
64879
64882
|
});
|
|
64880
64883
|
}
|
|
64881
64884
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64882
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64885
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64883
64886
|
return false;
|
|
64884
64887
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
64885
64888
|
}
|
|
@@ -65478,7 +65481,7 @@ var ts;
|
|
|
65478
65481
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
65479
65482
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
65480
65483
|
}
|
|
65481
|
-
if (target.flags & 262144 /* TypeParameter */ && target !==
|
|
65484
|
+
if (target.flags & 262144 /* TypeParameter */ && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
65482
65485
|
var constraint = getBaseConstraintOfType(target);
|
|
65483
65486
|
var needsOriginalSource = void 0;
|
|
65484
65487
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -76825,6 +76828,15 @@ var ts;
|
|
|
76825
76828
|
if (result) {
|
|
76826
76829
|
return result;
|
|
76827
76830
|
}
|
|
76831
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
76832
|
+
// Preemptively cache the result; getResolvedSignature will do this after we return, but
|
|
76833
|
+
// we need to ensure that the result is present for the error checks below so that if
|
|
76834
|
+
// this signature is encountered again, we handle the circularity (rather than producing a
|
|
76835
|
+
// different result which may produce no errors and assert). Callers of getResolvedSignature
|
|
76836
|
+
// don't hit this issue because they only observe this result after it's had a chance to
|
|
76837
|
+
// be cached, but the error reporting code below executes before getResolvedSignature sets
|
|
76838
|
+
// resolvedSignature.
|
|
76839
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
76828
76840
|
// No signatures were applicable. Now report errors based on the last applicable signature with
|
|
76829
76841
|
// no arguments excluded from assignability checks.
|
|
76830
76842
|
// If candidate is undefined, it means that no candidates had a suitable arity. In that case,
|
|
@@ -76916,7 +76928,7 @@ var ts;
|
|
|
76916
76928
|
}
|
|
76917
76929
|
}
|
|
76918
76930
|
}
|
|
76919
|
-
return
|
|
76931
|
+
return result;
|
|
76920
76932
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
76921
76933
|
var _a, _b;
|
|
76922
76934
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -80719,8 +80731,8 @@ var ts;
|
|
|
80719
80731
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
80720
80732
|
}
|
|
80721
80733
|
else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) {
|
|
80722
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80723
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80734
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
80735
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
80724
80736
|
var saveVarianceTypeParameter = typeParameter;
|
|
80725
80737
|
varianceTypeParameter = typeParameter;
|
|
80726
80738
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
|
@@ -130373,7 +130385,7 @@ var ts;
|
|
|
130373
130385
|
for (var _b = 0, textChanges_1 = textChanges_2; _b < textChanges_1.length; _b++) {
|
|
130374
130386
|
var change = textChanges_1[_b];
|
|
130375
130387
|
var span = change.span, newText = change.newText;
|
|
130376
|
-
var index = indexInTextChange(newText, name);
|
|
130388
|
+
var index = indexInTextChange(newText, ts.escapeString(name));
|
|
130377
130389
|
if (index !== -1) {
|
|
130378
130390
|
lastPos = span.start + delta + index;
|
|
130379
130391
|
// If the reference comes first, return immediately.
|
|
@@ -136803,6 +136815,10 @@ var ts;
|
|
|
136803
136815
|
}
|
|
136804
136816
|
break;
|
|
136805
136817
|
case 79 /* Identifier */: {
|
|
136818
|
+
var originalKeywordKind = location.originalKeywordKind;
|
|
136819
|
+
if (originalKeywordKind && ts.isKeyword(originalKeywordKind)) {
|
|
136820
|
+
return undefined;
|
|
136821
|
+
}
|
|
136806
136822
|
// class c { public prop = c| }
|
|
136807
136823
|
if (ts.isPropertyDeclaration(location.parent) && location.parent.initializer === location) {
|
|
136808
136824
|
return undefined;
|
|
@@ -156744,7 +156760,7 @@ var ts;
|
|
|
156744
156760
|
var checker = context.program.getTypeChecker();
|
|
156745
156761
|
var props = ts.map(info.properties, function (prop) {
|
|
156746
156762
|
var initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), info.parentDeclaration);
|
|
156747
|
-
return ts.factory.createPropertyAssignment(
|
|
156763
|
+
return ts.factory.createPropertyAssignment(createPropertyNameFromSymbol(prop, target, quotePreference, checker), initializer);
|
|
156748
156764
|
});
|
|
156749
156765
|
var options = {
|
|
156750
156766
|
leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,
|
|
@@ -156864,6 +156880,15 @@ var ts;
|
|
|
156864
156880
|
var declaration = ts.findAncestor(callExpression, function (n) { return ts.isMethodDeclaration(n) || ts.isConstructorDeclaration(n); });
|
|
156865
156881
|
return declaration && declaration.parent === node ? declaration : undefined;
|
|
156866
156882
|
}
|
|
156883
|
+
function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) {
|
|
156884
|
+
if (ts.isTransientSymbol(symbol) && symbol.nameType && symbol.nameType.flags & 8192 /* UniqueESSymbol */) {
|
|
156885
|
+
var expression = checker.symbolToExpression(symbol.nameType.symbol, 111551 /* Value */, symbol.valueDeclaration, 1048576 /* AllowUniqueESSymbolType */);
|
|
156886
|
+
if (expression) {
|
|
156887
|
+
return ts.factory.createComputedPropertyName(expression);
|
|
156888
|
+
}
|
|
156889
|
+
}
|
|
156890
|
+
return ts.createPropertyNameNodeForIdentifierOrLiteral(symbol.name, target, quotePreference === 0 /* Single */);
|
|
156891
|
+
}
|
|
156867
156892
|
})(codefix = ts.codefix || (ts.codefix = {}));
|
|
156868
156893
|
})(ts || (ts = {}));
|
|
156869
156894
|
/* @internal */
|
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.20220623";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -49089,6 +49089,9 @@ var ts;
|
|
|
49089
49089
|
var markerSubType = createTypeParameter();
|
|
49090
49090
|
markerSubType.constraint = markerSuperType;
|
|
49091
49091
|
var markerOtherType = createTypeParameter();
|
|
49092
|
+
var markerSuperTypeForCheck = createTypeParameter();
|
|
49093
|
+
var markerSubTypeForCheck = createTypeParameter();
|
|
49094
|
+
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
49092
49095
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
49093
49096
|
var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
49094
49097
|
var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);
|
|
@@ -52925,8 +52928,8 @@ var ts;
|
|
|
52925
52928
|
if (type.symbol) {
|
|
52926
52929
|
return symbolToTypeNode(type.symbol, context, 788968 /* Type */);
|
|
52927
52930
|
}
|
|
52928
|
-
var name = (type ===
|
|
52929
|
-
(type ===
|
|
52931
|
+
var name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ?
|
|
52932
|
+
(type === markerSubTypeForCheck ? "sub-" : "super-") + ts.symbolName(varianceTypeParameter.symbol) : "?";
|
|
52930
52933
|
return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name), /*typeArguments*/ undefined);
|
|
52931
52934
|
}
|
|
52932
52935
|
if (type.flags & 1048576 /* Union */ && type.origin) {
|
|
@@ -64607,7 +64610,7 @@ var ts;
|
|
|
64607
64610
|
});
|
|
64608
64611
|
}
|
|
64609
64612
|
function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64610
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64613
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64611
64614
|
return false;
|
|
64612
64615
|
if (isTupleLikeType(source)) {
|
|
64613
64616
|
return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
@@ -64674,7 +64677,7 @@ var ts;
|
|
|
64674
64677
|
});
|
|
64675
64678
|
}
|
|
64676
64679
|
function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {
|
|
64677
|
-
if (target.flags & 131068 /* Primitive */)
|
|
64680
|
+
if (target.flags & (131068 /* Primitive */ | 131072 /* Never */))
|
|
64678
64681
|
return false;
|
|
64679
64682
|
return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);
|
|
64680
64683
|
}
|
|
@@ -65273,7 +65276,7 @@ var ts;
|
|
|
65273
65276
|
ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), "generalized source shouldn't be assignable");
|
|
65274
65277
|
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
|
|
65275
65278
|
}
|
|
65276
|
-
if (target.flags & 262144 /* TypeParameter */ && target !==
|
|
65279
|
+
if (target.flags & 262144 /* TypeParameter */ && target !== markerSuperTypeForCheck && target !== markerSubTypeForCheck) {
|
|
65277
65280
|
var constraint = getBaseConstraintOfType(target);
|
|
65278
65281
|
var needsOriginalSource = void 0;
|
|
65279
65282
|
if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {
|
|
@@ -76620,6 +76623,15 @@ var ts;
|
|
|
76620
76623
|
if (result) {
|
|
76621
76624
|
return result;
|
|
76622
76625
|
}
|
|
76626
|
+
result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
|
|
76627
|
+
// Preemptively cache the result; getResolvedSignature will do this after we return, but
|
|
76628
|
+
// we need to ensure that the result is present for the error checks below so that if
|
|
76629
|
+
// this signature is encountered again, we handle the circularity (rather than producing a
|
|
76630
|
+
// different result which may produce no errors and assert). Callers of getResolvedSignature
|
|
76631
|
+
// don't hit this issue because they only observe this result after it's had a chance to
|
|
76632
|
+
// be cached, but the error reporting code below executes before getResolvedSignature sets
|
|
76633
|
+
// resolvedSignature.
|
|
76634
|
+
getNodeLinks(node).resolvedSignature = result;
|
|
76623
76635
|
// No signatures were applicable. Now report errors based on the last applicable signature with
|
|
76624
76636
|
// no arguments excluded from assignability checks.
|
|
76625
76637
|
// If candidate is undefined, it means that no candidates had a suitable arity. In that case,
|
|
@@ -76711,7 +76723,7 @@ var ts;
|
|
|
76711
76723
|
}
|
|
76712
76724
|
}
|
|
76713
76725
|
}
|
|
76714
|
-
return
|
|
76726
|
+
return result;
|
|
76715
76727
|
function addImplementationSuccessElaboration(failed, diagnostic) {
|
|
76716
76728
|
var _a, _b;
|
|
76717
76729
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
@@ -80514,8 +80526,8 @@ var ts;
|
|
|
80514
80526
|
error(node, ts.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);
|
|
80515
80527
|
}
|
|
80516
80528
|
else if (modifiers === 32768 /* In */ || modifiers === 65536 /* Out */) {
|
|
80517
|
-
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80518
|
-
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ?
|
|
80529
|
+
var source = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck);
|
|
80530
|
+
var target = createMarkerType(symbol, typeParameter, modifiers === 65536 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck);
|
|
80519
80531
|
var saveVarianceTypeParameter = typeParameter;
|
|
80520
80532
|
varianceTypeParameter = typeParameter;
|
|
80521
80533
|
checkTypeAssignableTo(source, target, node, ts.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation);
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== 未解析类型引用指令“{0}”。========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== 类型引用指令“{0}”已成功解析为“{1}”,主要: {2}。========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== 类型引用指令 \"{0}\" 已成功解析为 \"{1}\" ,包 ID 为 \"{2}\",主要: {3}。========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "类型不能出现在 JavaScript 文件的导出声明中。",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "类型具有私有属性“{0}”的单独声明。",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "构造签名的类型不兼容。",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "参数“{0}”和“{1}” 的类型不兼容。",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "用括号将以下应为对象文字的正文括起来",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "你可以在 {0} 了解编译器选项的所有内容",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "不能通过全局导入对模块进行重命名。",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "不能重命名已在 “node_modules” 文件夹中定义的元素。",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "不能重命名已在另一个 “node_modules” 文件夹中定义的元素。",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "不能重命名标准 TypeScript 库中定义的元素。",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "无法重命名此元素。",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "“{0}”收到的参数过少,无法在此处充当修饰器。你是要先调用它,然后再写入 \"@{0}()\" 吗?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "“{0}”索引签名不兼容。",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "“{0}”索引类型“{1}”不能分配给“{2}”索引类型“{3}”。",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "“{0}”是基元,但“{1}”是包装器对象。如可能首选使用“{0}”。",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "“{0}”是一种类型,无法在 JavaScript 文件中导入。请在 JSDoc 类型批注中使用“{1}”。",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" 是一种类型,在同时启用了 \"preserveValueImports\" 和 \"isolatedModules\" 时,必须使用仅类型导入进行导入。",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "“{0}”是“{1}”的未使用重命名。是否打算将其用作类型批注?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" 可赋给 \"{1}\" 类型的约束,但可以使用约束 \"{2}\" 的其他子类型实例化 \"{1}\"。",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "“{0}”自动导出到此处。",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "已声明“{0}”,但从未读取其值。",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "“{0}”已声明,但从未使用过。",
|
|
1700
1705
|
"_0_is_declared_here_2728": "在此处声明了 \"{0}\"。",
|
|
@@ -1588,6 +1588,7 @@
|
|
|
1588
1588
|
"Type_reference_directive_0_was_not_resolved_6120": "======== 類型參考指示詞 '{0}' 未解析。========",
|
|
1589
1589
|
"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== 類型參考指示詞 '{0}' 已成功解析為 '{1}',主要: {2}。========",
|
|
1590
1590
|
"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== 類型參考指示詞 '{0}' 已成功解析為 '{1}',套件識別碼為 '{2}',主要: {3}。========",
|
|
1591
|
+
"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "類型不能出現在 JavaScript 檔案的匯出宣告中。",
|
|
1591
1592
|
"Types_have_separate_declarations_of_a_private_property_0_2442": "類型具有私用屬性 '{0}' 的個別宣告。",
|
|
1592
1593
|
"Types_of_construct_signatures_are_incompatible_2419": "建構簽章的類型不相容。",
|
|
1593
1594
|
"Types_of_parameters_0_and_1_are_incompatible_2328": "參數 '{0}' 和 '{1}' 的類型不相容。",
|
|
@@ -1665,6 +1666,8 @@
|
|
|
1665
1666
|
"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "使用括弧括住下列必須是物件常值的主體",
|
|
1666
1667
|
"You_can_learn_about_all_of_the_compiler_options_at_0_6913": "您可以在以下位置了解所有編譯器選項: {0}",
|
|
1667
1668
|
"You_cannot_rename_a_module_via_a_global_import_8031": "您無法透過全域匯入重新命名模組。",
|
|
1669
|
+
"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "您無法重新命名 'node_modules' 資料夾中定義的元素。",
|
|
1670
|
+
"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "您無法重新命名其他 'node_modules' 資料夾中定義的元素。",
|
|
1668
1671
|
"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "您無法重新命名標準 TypeScript 程式庫中所定義的項目。",
|
|
1669
1672
|
"You_cannot_rename_this_element_8000": "您無法重新命名這個項目。",
|
|
1670
1673
|
"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' 在此只接受極少數的引數用為裝飾項目。要先呼叫此項目,然後再寫入 '@{0}()' 嗎?",
|
|
@@ -1692,9 +1695,11 @@
|
|
|
1692
1695
|
"_0_index_signatures_are_incompatible_2634": "'{0}' 索引簽章不相容。",
|
|
1693
1696
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 索引類型 '{1}' 無法指派給 '{2}' 索引類型 '{3}'。",
|
|
1694
1697
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' 為基元,但 '{1}' 為包裝函式物件。建議盡可能使用 '{0}'。",
|
|
1698
|
+
"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' 為類型,無法匯入 JavaScript 檔案。在 JSDoc 類型註釋中使用 '{1}'。",
|
|
1695
1699
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' 是類型,而且當 'preserveValueImports' 和 'isolatedModules' 都啟用時,必須使用僅類型匯入來匯入。",
|
|
1696
1700
|
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' 是未使用的 '{1}' 重新命名。您是否想要使用它作為類型註釋?",
|
|
1697
1701
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' 可指派給 '{1}' 類型的條件約束,但可能會將 '{1}' 以不同的條件約束 '{2}' 子類型來具現化。",
|
|
1702
|
+
"_0_is_automatically_exported_here_18044": "'{0}' 會自動匯出到此處。",
|
|
1698
1703
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' 已宣告但從未讀取其值。",
|
|
1699
1704
|
"_0_is_declared_but_never_used_6196": "宣告了 '{0}',但從未使用過。",
|
|
1700
1705
|
"_0_is_declared_here_2728": "'{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.8.0-dev.
|
|
5
|
+
"version": "4.8.0-dev.20220623",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|