typescript 5.7.0-dev.20241016 → 5.7.0-dev.20241018
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/_tsc.js +20 -2
- package/lib/cs/diagnosticMessages.generated.json +2 -2
- package/lib/de/diagnosticMessages.generated.json +2 -2
- package/lib/es/diagnosticMessages.generated.json +2 -2
- package/lib/fr/diagnosticMessages.generated.json +2 -2
- package/lib/it/diagnosticMessages.generated.json +2 -2
- package/lib/ja/diagnosticMessages.generated.json +2 -2
- package/lib/ko/diagnosticMessages.generated.json +2 -2
- package/lib/pl/diagnosticMessages.generated.json +2 -2
- package/lib/pt-br/diagnosticMessages.generated.json +12 -4
- package/lib/ru/diagnosticMessages.generated.json +2 -2
- package/lib/tr/diagnosticMessages.generated.json +2 -2
- package/lib/typescript.js +39 -25
- package/lib/zh-cn/diagnosticMessages.generated.json +3 -3
- package/lib/zh-tw/diagnosticMessages.generated.json +2 -2
- package/package.json +2 -2
package/lib/_tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.7";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20241018`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -17376,6 +17376,13 @@ function getLastChild(node) {
|
|
|
17376
17376
|
});
|
|
17377
17377
|
return lastChild;
|
|
17378
17378
|
}
|
|
17379
|
+
function addToSeen(seen, key) {
|
|
17380
|
+
if (seen.has(key)) {
|
|
17381
|
+
return false;
|
|
17382
|
+
}
|
|
17383
|
+
seen.add(key);
|
|
17384
|
+
return true;
|
|
17385
|
+
}
|
|
17379
17386
|
function isTypeNodeKind(kind) {
|
|
17380
17387
|
return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 312 /* JSDocAllType */ || kind === 313 /* JSDocUnknownType */ || kind === 314 /* JSDocNullableType */ || kind === 315 /* JSDocNonNullableType */ || kind === 316 /* JSDocOptionalType */ || kind === 317 /* JSDocFunctionType */ || kind === 318 /* JSDocVariadicType */;
|
|
17381
17388
|
}
|
|
@@ -38167,7 +38174,7 @@ function convertToTSConfig(configParseResult, configFileName, host) {
|
|
|
38167
38174
|
const providedKeys = new Set(optionMap.keys());
|
|
38168
38175
|
const impliedCompilerOptions = {};
|
|
38169
38176
|
for (const option in computedOptions) {
|
|
38170
|
-
if (!providedKeys.has(option) &&
|
|
38177
|
+
if (!providedKeys.has(option) && optionDependsOn(option, providedKeys)) {
|
|
38171
38178
|
const implied = computedOptions[option].computeValue(configParseResult.options);
|
|
38172
38179
|
const defaultValue = computedOptions[option].computeValue({});
|
|
38173
38180
|
if (implied !== defaultValue) {
|
|
@@ -38178,6 +38185,17 @@ function convertToTSConfig(configParseResult, configFileName, host) {
|
|
|
38178
38185
|
assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions)));
|
|
38179
38186
|
return config;
|
|
38180
38187
|
}
|
|
38188
|
+
function optionDependsOn(option, dependsOn) {
|
|
38189
|
+
const seen = /* @__PURE__ */ new Set();
|
|
38190
|
+
return optionDependsOnRecursive(option);
|
|
38191
|
+
function optionDependsOnRecursive(option2) {
|
|
38192
|
+
var _a;
|
|
38193
|
+
if (addToSeen(seen, option2)) {
|
|
38194
|
+
return some((_a = computedOptions[option2]) == null ? void 0 : _a.dependencies, (dep) => dependsOn.has(dep) || optionDependsOnRecursive(dep));
|
|
38195
|
+
}
|
|
38196
|
+
return false;
|
|
38197
|
+
}
|
|
38198
|
+
}
|
|
38181
38199
|
function optionMapToObject(optionMap) {
|
|
38182
38200
|
return Object.fromEntries(optionMap);
|
|
38183
38201
|
}
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Kontrolní výrazy vyžadují, aby cíl volání byl identifikátor, nebo kvalifikovaný název.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Přiřazování vlastností funkcím bez jejich deklarování není u s možností --isolatedDeclarations podporováno. Přidejte explicitní deklaraci pro vlastnosti přiřazené k této funkci.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "Očekával se znak */.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Minimálně jeden přistupující objekt musí mít explicitní anotaci typu s možností --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Rozšíření pro globální rozsah může být jenom přímo vnořené v externích modulech nebo deklaracích ambientního modulu.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Rozšíření pro globální rozsah by měla mít modifikátor declare, pokud se neobjeví v kontextu, který je už ambientní.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Automatické zjišťování pro psaní je povolené v projektu {0}. Spouští se speciální průchod řešení pro modul {1} prostřednictvím umístění mezipaměti {2}.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Generování deklarace pro tento soubor vyžaduje zachování tohoto importu pro rozšíření. Toto není podporováno s možností --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0}. Explicitní anotace typu může generování deklarací odblokovat.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0} z modulu {1}. Explicitní anotace typu může generování deklarací odblokovat.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Generování deklarace pro tento parametr vyžaduje implicitní přidání možnosti „undefined“ do jeho typu. Není podporováno s možností „--isolatedDeclarations“.",
|
|
549
549
|
"Declaration_expected_1146": "Očekává se deklarace.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Název deklarace je v konfliktu s integrovaným globálním identifikátorem {0}.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Očekává se deklarace nebo příkaz.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Assertionen erfordern, dass das Aufrufziel ein Bezeichner oder ein qualifizierter Name ist.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Das Zuweisen von Eigenschaften zu Funktionen ohne Deklaration wird mit \"--isolatedDeclarations\" nicht unterstützt. Fügen Sie eine explizite Deklaration für die Eigenschaften hinzu, die dieser Funktion zugewiesen sind.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "\"*/\" wurde erwartet.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Mindestens ein Accessor muss über eine explizite Typanmerkung mit „--isolatedDeclarations“ verfügen.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Erweiterungen für den globalen Bereich können nur in externen Modulen oder Umgebungsmoduldeklarationen direkt geschachtelt werden.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Erweiterungen für den globalen Bereich sollten den Modifizierer \"declare\" aufweisen, wenn sie nicht bereits in einem Umgebungskontext auftreten.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "In Projekt \"{0}\" ist die automatische Erkennung von Eingaben aktiviert. Es wird ein zusätzlicher Auflösungsdurchlauf für das Modul \"{1}\" unter Verwendung von Cachespeicherort \"{2}\" ausgeführt.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Die Deklarationsausgabe für diese Datei erfordert, dass dieser Import für Augmentationen beibehalten wird. Dies wird mit \"--isolatedDeclarations\" nicht unterstützt.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" aus dem Modul \"{1}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Die Deklarationsausgabe für diesen Parameter erfordert das implizit undefinierte Hinzufügen zum Typ. Dies wird mit „--isolatedDeclarations“ nicht unterstützt.",
|
|
549
549
|
"Declaration_expected_1146": "Es wurde eine Deklaration erwartet.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Der Deklarationsname steht in Konflikt mit dem integrierten globalen Bezeichner \"{0}\".",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Es wurde eine Deklaration oder Anweisung erwartet.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Las aserciones requieren que el destino de llamada sea un identificador o un nombre calificado.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "No se admite la asignación de propiedades a funciones sin declararlas con --isolatedDeclarations. Agregue una declaración explícita para las propiedades asignadas a esta función.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "Se esperaba \"*/\".",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Al menos un descriptor de acceso debe tener una anotación de tipo explícita con --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Los aumentos del ámbito global solo pueden anidarse directamente en módulos externos o en declaraciones de módulos de ambiente.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Los aumentos del ámbito global deben tener el modificador 'declare', a menos que aparezcan en un contexto de ambiente.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La detección automática de escritura está habilitada en el proyecto '{0}'. Se va a ejecutar un paso de resolución extra para el módulo '{1}' usando la ubicación de caché '{2}'.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "La emisión de declaración para este archivo requiere conservar esta importación para aumentos. Esto no se admite con --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\" del módulo \"{1}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "La emisión de declaración para este parámetro requiere agregar implícitamente un elemento no definido a su tipo. Esto no se admite con --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "Se esperaba una declaración.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Conflictos entre nombres de declaración con el identificador global '{0}' integrado.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Se esperaba una declaración o una instrucción.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Quand vous utilisez des assertions, la cible d'appel doit être un identificateur ou un nom qualifié.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "L’affectation de propriétés à des fonctions sans les déclarer n’est pas prise en charge avec --isolatedDeclarations. Ajoutez une déclaration explicite pour les propriétés affectées à cette fonction.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "'.' attendu.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Au moins un accesseur doit avoir une annotation de type explicite avec --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Les augmentations de la portée globale ne peuvent être directement imbriquées que dans les modules externes ou les déclarations de modules ambiants.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Les augmentations de la portée globale doivent comporter un modificateur 'declare', sauf si elles apparaissent déjà dans un contexte ambiant.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La détection automatique des typages est activée dans le projet '{0}'. Exécution de la passe de résolution supplémentaire pour le module '{1}' à l'aide de l'emplacement du cache '{2}'.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "L’émission de déclaration pour ce fichier nécessite la conservation de cette importation pour des augmentations. Cette opération n’est pas pris en charge avec --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}'. Une annotation de type explicite peut débloquer l'émission de déclaration.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}' à partir du module '{1}'. Une annotation de type explicite peut débloquer l'émission de déclaration.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "L’émission de déclaration pour ce paramètre nécessite l’ajout implicite de « non défini » à son type. Cette opération n’est pas pris en charge avec --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "Déclaration attendue.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Le nom de la déclaration est en conflit avec l'identificateur global intégré '{0}'.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Déclaration ou instruction attendue.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Con le asserzioni la destinazione di chiamata deve essere un identificatore o un nome completo.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "L'assegnazione di proprietà a funzioni senza dichiararle non è supportata con --isolatedDeclarations. Aggiungere una dichiarazione esplicita per le proprietà assegnate a questa funzione.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "È previsto '*/'.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Almeno una funzione di accesso deve avere un'annotazione di tipo esplicita con --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Gli aumenti per l'ambito globale possono solo essere direttamente annidati in dichiarazioni di modulo di ambiente o moduli esterni.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Gli aumenti per l'ambito globale devono contenere il modificatore 'declare', a meno che non siano già presenti in un contesto di ambiente.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Il rilevamento automatico per le defizioni di tipi è abilitato nel progetto '{0}'. Verrà eseguito il passaggio di risoluzione aggiuntivo per il modulo '{1}' usando il percorso della cache '{2}'.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "La creazione della dichiarazione per questo file richiede il mantenimento dell'importazione per gli aumenti. Funzionalità non supportata con --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}' dal modulo '{1}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "La creazione di dichiarazioni per questo parametro richiede l'aggiunta implicita di elementi non definiti al relativo tipo. Funzionalità non supportata con --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "È prevista la dichiarazione.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Il nome della dichiarazione è in conflitto con l'identificatore globale predefinito '{0}'.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "È prevista la dichiarazione o l'istruzione.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "アサーションでは、呼び出し先が識別子または修飾名である必要があります。",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "宣言せずに関数にプロパティを割り当てることは、--isolatedDeclarations ではサポートされていません。この関数に割り当てられたプロパティに明示的な宣言を追加してください。",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "'*/' が必要です。",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "少なくとも 1 つのアクセサーに、--isolatedDeclarations を含む明示的な型の注釈が必要です。",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "グローバル スコープの拡張を直接入れ子にできるのは、外部モジュールまたは環境モジュールの宣言内のみです。",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "グローバル スコープの拡張は、環境コンテキストに既にある場合を除いて、'declare' 修飾子を使用する必要があります。",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "プロジェクト '{0}' で型指定の自動検出が有効になっています。キャッシュの場所 '{2}' を使用して、モジュール '{1}' に対して追加の解決パスを実行しています。",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "このファイルの宣言を生成するには、拡張のためにこのインポートを保持する必要があります。これは --isolatedDeclarations ではサポートされていません。",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "このファイルの宣言の生成では、プライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "このファイルの宣言の生成では、モジュール '{1}' からのプライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "このパラメーターの宣言を生成するには、その型に未定義の値を暗黙的に追加する必要があります。これは --isolatedDeclarations ではサポートされていません。",
|
|
549
549
|
"Declaration_expected_1146": "宣言が必要です。",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣言名が組み込みのグローバル識別子 '{0}' と競合しています。",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "宣言またはステートメントが必要です。",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "어설션에서 호출 대상은 식별자 또는 정규화된 이름이어야 합니다.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "함수를 선언하지 않고 함수에 속성을 할당하는 것은 --isolatedDeclarations에서 지원되지 않습니다. 이 함수에 할당된 속성에 대한 명시적 선언을 추가합니다.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "'*/'가 필요합니다.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "하나 이상의 접근자에 --isolatedDeclarations를 사용하는 명시적 형식 주석이 있어야 합니다.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "전역 범위에 대한 확대는 외부 모듈 또는 앰비언트 모듈 선언에만 직접 중첩될 수 있습니다.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "전역 범위에 대한 확대는 이미 존재하는 앰비언트 컨텍스트에 표시되지 않는 한 'declare' 한정자를 포함해야 합니다.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "프로젝트 '{0}'에서 입력에 대한 자동 검색을 사용하도록 설정되었습니다. '{2}' 캐시 위치를 사용하여 모듈 '{1}'에 대해 추가 해결 패스를 실행합니다.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "이 파일에 대한 선언 내보내기에서는 확대를 위해 이 가져오기를 유지해야 합니다. 이는 --isolatedDeclarations에서는 지원되지 않습니다.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "이 파일의 선언 내보내기에는 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "이 파일의 선언 내보내기에는 '{1}' 모듈의 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "이 매개 변수에 대한 선언 내보내기를 사용하려면 정의되지 않은 형식을 암시적으로 추가해야 합니다. 이는 --isolatedDeclarations에서는 지원되지 않습니다.",
|
|
549
549
|
"Declaration_expected_1146": "선언이 필요합니다.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "선언 이름이 기본 제공 전역 ID '{0}'과(와) 충돌합니다.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "선언 또는 문이 필요합니다.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Asercje wymagają, aby cel wywołania był identyfikatorem lub nazwą kwalifikowaną.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Przypisywanie właściwości do funkcji bez deklarowania ich nie jest obsługiwane w przypadku opcji --isolatedDeclarations. Dodaj jawną deklarację właściwości przypisanych do tej funkcji.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "Oczekiwano znaków „*/”.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Co najmniej jeden akcesor musi mieć jawną adnotację typu z parametrem --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Rozszerzenia zakresu globalnego mogą być zagnieżdżane bezpośrednio jedynie w modułach zewnętrznych lub deklaracjach modułów otoczenia.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Rozszerzenia zakresu globalnego muszą mieć modyfikator „declare”, chyba że znajdują się w już otaczającym kontekście.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Automatyczne odnajdowanie operacji wpisywania zostało włączone w projekcie „{0}”. Trwa uruchamianie dodatkowego przejścia rozwiązania dla modułu „{1}” przy użyciu lokalizacji pamięci podręcznej „{2}”.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Emisja deklaracji dla tego pliku wymaga zachowania tego importu dla rozszerzeń. Nie jest to obsługiwane w przypadku parametru --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Emitowanie deklaracji dla tego pliku wymaga użycia nazwy prywatnej „{0}”. Jawna adnotacja typu może odblokować emitowanie deklaracji.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Emitowanie deklaracji dla tego pliku wymaga użycia nazwy prywatnej „{0}” z modułu „{1}”. Jawna adnotacja typu może odblokować emitowanie deklaracji.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Emisja deklaracji dla tego parametru wymaga niejawnego dodania parametru undefined do jego typu. Nie jest to obsługiwane w przypadku parametru --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "Oczekiwano deklaracji.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Nazwa deklaracji powoduje konflikt z wbudowanym identyfikatorem globalnym „{0}”.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Oczekiwano deklaracji lub instrukcji.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "As declarações exigem que o destino da chamada seja um identificador ou um nome qualificado.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Não há suporte para a atribuição de propriedades a funções sem declará-las com --isolatedDeclarations. Adicione uma declaração explícita para as propriedades atribuídas a essa função.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "'*/' esperado.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Pelo menos um acessor deve ter uma anotação de tipo explícita com `--isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Acréscimos de escopo global somente podem ser diretamente aninhados em módulos externos ou declarações de módulo de ambiente.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Acréscimos de escopo global devem ter o modificador 'declare' a menos que apareçam em contexto já ambiente.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "A descoberta automática para digitações está habilitada no projeto '{0}'. Executando o passe de resolução extra para o módulo '{1}' usando o local do cache '{2}'.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "A emissão de declaração para este arquivo requer a preservação desta importação para aumentos. Não há suporte para isso com --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "A emissão de declaração para esse arquivo requer o uso do nome privado '{0}'. Uma anotação de tipo explícita pode desbloquear a emissão de declaração.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "A emissão de declaração para esse arquivo requer o uso do nome privado '{0}' do módulo '{1}'. Uma anotação de tipo explícita pode desbloquear a emissão de declaração.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "A declaração emit para esse parâmetro requer a adição implícita de indefinido ao seu tipo. Não há suporte para isso com --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "Declaração esperada.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "O nome de declaração entra em conflito com o identificador global integrado '{0}'.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Declaração ou instrução esperada.",
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
"Generates_an_event_trace_and_a_list_of_types_6237": "Gera um rastreamento de eventos e uma lista de tipos.",
|
|
853
853
|
"Generates_corresponding_d_ts_file_6002": "Gera o arquivo '.d.ts' correspondente.",
|
|
854
854
|
"Generates_corresponding_map_file_6043": "Gera o arquivo '.map' correspondente.",
|
|
855
|
-
"
|
|
855
|
+
"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "O gerador tem implicitamente o tipo de rendimento \"{0}\". Considere fornecer uma anotação de tipo de retorno.",
|
|
856
856
|
"Generators_are_not_allowed_in_an_ambient_context_1221": "Os geradores não são permitidos em um contexto de ambiente.",
|
|
857
857
|
"Generic_type_0_requires_1_type_argument_s_2314": "O tipo genérico '{0}' exige {1} argumento(s) de tipo.",
|
|
858
858
|
"Generic_type_0_requires_between_1_and_2_type_arguments_2707": "O tipo genérico '{0}' exige argumentos de tipo entre {1} e {2}.",
|
|
@@ -909,6 +909,7 @@
|
|
|
909
909
|
"Imported_via_0_from_file_1_with_packageId_2_1394": "Importado via {0} do arquivo '{1}' com packageId '{2}'",
|
|
910
910
|
"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importado via {0} do arquivo '{1}' com packageId '{2}' para importar 'importHelpers' conforme especificado em compilerOptions",
|
|
911
911
|
"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importado via {0} do arquivo '{1}' com packageId '{2}' para importar as funções de fábrica 'jsx' e 'jsxs'",
|
|
912
|
+
"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "A importação de um arquivo JSON para um módulo ECMAScript requer um 'type: \"json\"' quando o atributo de importação \"module\" estiver definido como \"{0}\".",
|
|
912
913
|
"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importações não são permitidas em acréscimos de módulo. Considere movê-las para o módulo externo delimitador.",
|
|
913
914
|
"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Em declarações de enumeração de ambiente, o inicializador de membro deve ser uma expressão de constante.",
|
|
914
915
|
"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Em uma enumeração com várias declarações, somente uma declaração pode omitir um inicializador para o primeiro elemento de enumeração.",
|
|
@@ -1061,6 +1062,7 @@
|
|
|
1061
1062
|
"Name_is_not_valid_95136": "Nome inválido",
|
|
1062
1063
|
"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Grupos de captura nomeados só estão disponíveis ao direcionar para 'ES2018' ou posterior.",
|
|
1063
1064
|
"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Grupos de captura nomeados com o mesmo nome devem ser mutuamente exclusivos entre si.",
|
|
1065
|
+
"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "As importações nomeadas de um arquivo JSON para um módulo ECMAScript não são permitidas quando \"module\" é definido como \"{0}\".",
|
|
1064
1066
|
"Named_property_0_of_types_1_and_2_are_not_identical_2319": "As propriedades com nome '{0}' dos tipos '{1}' e '{2}' não são idênticas.",
|
|
1065
1067
|
"Namespace_0_has_no_exported_member_1_2694": "O namespace '{0}' não tem o membro exportado '{1}'.",
|
|
1066
1068
|
"Namespace_must_be_given_a_name_1437": "O Namespace deve receber um nome.",
|
|
@@ -1145,7 +1147,6 @@
|
|
|
1145
1147
|
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "A opção 'project' não pode ser mesclada com arquivos de origem em uma linha de comando.",
|
|
1146
1148
|
"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "A opção '--resolveJsonModule' não pode ser especificada quando 'moduleResolution' está definido como 'classic'.",
|
|
1147
1149
|
"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "A opção '--resolveJsonModule' não pode ser especificada quando 'module' está definido como 'none', 'system' ou 'umd'.",
|
|
1148
|
-
"Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111": "A opção 'tsBuildInfoFile' não pode ser especificada sem especificar a opção 'incremental' ou 'composite' ou se não estiver executando 'tsc -b'.",
|
|
1149
1150
|
"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "A opção 'texttimModuleSyntax' não pode ser usada quando 'module' está definido como 'UMD', 'AMD' ou 'System'.",
|
|
1150
1151
|
"Options_0_and_1_cannot_be_combined_6370": "As opções '{0}' e '{1}' não podem ser combinadas.",
|
|
1151
1152
|
"Options_Colon_6027": "Opções:",
|
|
@@ -1415,6 +1416,7 @@
|
|
|
1415
1416
|
"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Reutilizando a resolução do tipo diretriz de referência '{0}' de '{1}' do antigo programa, foi resolvido com sucesso para '{2}' com ID do Pacote '{3}'.",
|
|
1416
1417
|
"Rewrite_all_as_indexed_access_types_95034": "Reescrever tudo como tipos de acesso indexados",
|
|
1417
1418
|
"Rewrite_as_the_indexed_access_type_0_90026": "Reescrever como o tipo de acesso indexado '{0}'",
|
|
1419
|
+
"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Reescreva as extensões de arquivo \".ts\", \".tsx\", \".mts\" e \".cts\" em caminhos de importação relativos para seu equivalente em JavaScript nos arquivos de saída.",
|
|
1418
1420
|
"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Operando direito de ?? está inacessível porque o operando esquerdo nunca é nulo.",
|
|
1419
1421
|
"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Diretório raiz não pode ser determinado, ignorando caminhos de pesquisa primários.",
|
|
1420
1422
|
"Root_file_specified_for_compilation_1427": "Arquivo raiz especificado para compilação",
|
|
@@ -1635,6 +1637,8 @@
|
|
|
1635
1637
|
"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Há tipos em '{0}', mas esse resultado não pôde ser resolvido ao respeitar as \"exportações\" do package.json. A biblioteca '{1}' pode precisar atualizar o package.json ou as digitações.",
|
|
1636
1638
|
"There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "Não há nenhum grupo de captura chamado '{0}' nesta expressão regular.",
|
|
1637
1639
|
"There_is_nothing_available_for_repetition_1507": "Não há nada disponível para repetição.",
|
|
1640
|
+
"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Essa marca JSX requer que \"{0}\" esteja no escopo, mas não foi possível encontrá-la.",
|
|
1641
|
+
"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Essa marca JSX requer a existência do caminho do módulo \"{0}\", mas não foi possível encontrar nenhum. Verifique se você tem os tipos do pacote apropriado instalados.",
|
|
1638
1642
|
"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "A propriedade '{0}' da marca desse JSX espera um único filho do tipo '{1}', mas vários filhos foram fornecidos.",
|
|
1639
1643
|
"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "A propriedade '{0}' da marca desse JSX espera o tipo '{1}' que requer vários filhos, mas somente um único filho foi fornecido.",
|
|
1640
1644
|
"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Essa referência inversa refere-se a um grupo que não existe. Não há grupos de captura nessa expressão regular.",
|
|
@@ -1652,6 +1656,8 @@
|
|
|
1652
1656
|
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Esta expressão não pode ser chamada porque é um acessador 'get'. Você quis usá-la sem '()'?",
|
|
1653
1657
|
"This_expression_is_not_constructable_2351": "Essa expressão não pode ser construída.",
|
|
1654
1658
|
"This_file_already_has_a_default_export_95130": "Este arquivo já tem uma exportação padrão",
|
|
1659
|
+
"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Não é seguro reescrever esse caminho de importação porque ele é resolvido em outro projeto, e o caminho relativo entre os arquivos de saída dos projetos não é o mesmo que o caminho relativo entre seus arquivos de entrada.",
|
|
1660
|
+
"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Essa importação usa uma extensão \"{0}\" para resolver um arquivo TypeScript de entrada, mas não será reescrita durante a emissão porque não é um caminho relativo.",
|
|
1655
1661
|
"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Esta é a declaração que está sendo aumentada. Considere mover a declaração em aumento para o mesmo arquivo.",
|
|
1656
1662
|
"This_kind_of_expression_is_always_falsy_2873": "Esse tipo de expressão é sempre inválido.",
|
|
1657
1663
|
"This_kind_of_expression_is_always_truthy_2872": "Esse tipo de expressão é sempre verdadeiro.",
|
|
@@ -1675,6 +1681,7 @@
|
|
|
1675
1681
|
"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Esta propriedade de parâmetro deve ter uma modificação de 'substituição' porque substitui um membro na classe base '{0}'.",
|
|
1676
1682
|
"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Esse sinalizador de expressão regular não pode ser alternado em um subpadrão.",
|
|
1677
1683
|
"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Esse sinalizador de expressão regular só está disponível ao direcionar para '{0}' ou posterior.",
|
|
1684
|
+
"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Não é seguro reescrever esse caminho de importação relativo porque ele se parece com um nome de arquivo, mas, na verdade, é resolvido como \"{0}\".",
|
|
1678
1685
|
"This_spread_always_overwrites_this_property_2785": "Essa difusão sempre substitui essa propriedade.",
|
|
1679
1686
|
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Essa sintaxe é reservada em arquivos com extensão .mts ou .cts. Adicione uma vírgula final ou restrição explícita.",
|
|
1680
1687
|
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Essa sintaxe é reservada em arquivos com extensão .mts ou .cts. Em vez disso, use uma expressão `as`.",
|
|
@@ -1848,6 +1855,7 @@
|
|
|
1848
1855
|
"Use_the_package_json_imports_field_when_resolving_imports_6409": "Use o campo 'imports' no package.json ao resolver importações.",
|
|
1849
1856
|
"Use_type_0_95181": "Usar 'type {0}'",
|
|
1850
1857
|
"Using_0_subpath_1_with_target_2_6404": "Usando '{0}' subcaminho '{1}' com destino '{2}'.",
|
|
1858
|
+
"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "O uso de fragmentos JSX requer que a fábrica de fragmentos \"{0}\" esteja no escopo, mas não foi possível encontrá-la.",
|
|
1851
1859
|
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Há suporte para o uso de uma cadeia de caracteres em uma instrução 'for...of' somente no ECMAScript 5 e superior.",
|
|
1852
1860
|
"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Usar --build, -b fará com que o tsc se comporte mais como um orquestrador de build do que como um compilador. Isso é usado para acionar a construção de projetos compostos sobre os quais você pode aprender mais em {0}",
|
|
1853
1861
|
"Using_compiler_options_of_project_reference_redirect_0_6215": "Usando as opções do compilador de redirecionamento de referência do projeto '{0}'.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Утверждения требуют, чтобы целевой объект вызова был идентификатором или полным именем.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Назначение свойств функциям без их объявления не поддерживается с помощью --isolatedDeclarations. Добавьте явное объявление свойств, назначенных этой функции.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "Ожидалось \"*/\".",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "По крайней мере один метод доступа должен иметь явную аннотацию типа с параметром --isolatedDeclarations.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Улучшения для глобальной области могут быть вложены во внешние модули или неоднозначные объявления модулей только напрямую.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Улучшения для глобальной области не должны иметь модификатор declare, если они отображаются в окружающем контексте.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Автообнаружение для вводимых данных включено в проекте \"{0}\". Идет запуск дополнительного этапа разрешения для модуля \"{1}\" с использованием расположения кэша \"{2}\".",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Выдача декларации для этого файла требует сохранения этого импорта для дополнений. Это не поддерживается с помощью --isolatedDeclarations.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Для порождения объявления для этого файла требуется использовать закрытое имя \"{0}\". Явная заметка с типом может разблокировать порождение объявления.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Для порождения объявления для этого файла требуется использовать закрытое имя \"{0}\" из модуля \"{1}\". Явная заметка с типом может разблокировать порождение объявления.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Выдача объявления для этого параметра требует неявного добавления неопределенного значения к его типу. Это не поддерживается с помощью --isolatedDeclarations.",
|
|
549
549
|
"Declaration_expected_1146": "Ожидалось объявление.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Имя объявления конфликтует со встроенным глобальным идентификатором \"{0}\".",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Ожидалось объявление или оператор.",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Onaylamalar, çağrı hedefinin bir tanımlayıcı veya tam ad olmasını gerektirir.",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Özelliklerin işlevlere bildirilmeden atanması --isolatedDeclarations ile desteklenmez. Bu işleve atanan özellikler için açık bir bildirim ekleyin.",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "'*/' bekleniyor.",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "En az bir erişimcinin --isolatedDeclarations ile açık bir tür ek açıklamasına sahip olması gereklidir.",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Genel kapsam genişletmeleri yalnızca dış modüllerde ya da çevresel modül bildirimlerinde doğrudan yuvalanabilir.",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Genel kapsam genişletmeleri, zaten çevresel olan bir bağlamda göründükleri durumlar dışında 'declare' değiştiricisine sahip olmalıdır.",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "'{0}' projesinde otomatik tür bulma etkinleştirildi. '{2}' önbellek konumu kullanılarak '{1}' modülü için ek çözümleme geçişi çalıştırılıyor.",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Bu dosyaya ilişkin bildirim, bu içe aktarmanın genişletmeler için korunmasını gerektirir. Bu, --isolatedDeclarations ile desteklenmez.",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Bu dosya için bildirim gösterme, '{0}' özel adını kullanmayı gerektiriyor. Açık tür ek açıklaması, bildirim gösterme engelini kaldırabilir.",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Bu dosya için bildirim gösterme, '{1}' modülündeki '{0}' özel adını kullanmayı gerektiriyor. Açık tür ek açıklaması, bildirim gösterme engelini kaldırabilir.",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Bu parametre için bildirim gösterme, türüne örtülü olarak tanımsız eklenmesini gerektirir. Bu, --isolatedDeclarations ile desteklenmez.",
|
|
549
549
|
"Declaration_expected_1146": "Bildirim bekleniyor.",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Bildirim adı, yerleşik genel tanımlayıcı '{0}' ile çakışıyor.",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "Bildirim veya deyim bekleniyor.",
|
package/lib/typescript.js
CHANGED
|
@@ -2277,7 +2277,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2277
2277
|
|
|
2278
2278
|
// src/compiler/corePublic.ts
|
|
2279
2279
|
var versionMajorMinor = "5.7";
|
|
2280
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2280
|
+
var version = `${versionMajorMinor}.0-dev.20241018`;
|
|
2281
2281
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2282
2282
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2283
2283
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -21262,11 +21262,11 @@ function getLastChild(node) {
|
|
|
21262
21262
|
});
|
|
21263
21263
|
return lastChild;
|
|
21264
21264
|
}
|
|
21265
|
-
function addToSeen(seen, key
|
|
21265
|
+
function addToSeen(seen, key) {
|
|
21266
21266
|
if (seen.has(key)) {
|
|
21267
21267
|
return false;
|
|
21268
21268
|
}
|
|
21269
|
-
seen.
|
|
21269
|
+
seen.add(key);
|
|
21270
21270
|
return true;
|
|
21271
21271
|
}
|
|
21272
21272
|
function isObjectTypeDeclaration(node) {
|
|
@@ -42429,7 +42429,7 @@ function convertToTSConfig(configParseResult, configFileName, host) {
|
|
|
42429
42429
|
const providedKeys = new Set(optionMap.keys());
|
|
42430
42430
|
const impliedCompilerOptions = {};
|
|
42431
42431
|
for (const option in computedOptions) {
|
|
42432
|
-
if (!providedKeys.has(option) &&
|
|
42432
|
+
if (!providedKeys.has(option) && optionDependsOn(option, providedKeys)) {
|
|
42433
42433
|
const implied = computedOptions[option].computeValue(configParseResult.options);
|
|
42434
42434
|
const defaultValue = computedOptions[option].computeValue({});
|
|
42435
42435
|
if (implied !== defaultValue) {
|
|
@@ -42440,6 +42440,17 @@ function convertToTSConfig(configParseResult, configFileName, host) {
|
|
|
42440
42440
|
assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions)));
|
|
42441
42441
|
return config;
|
|
42442
42442
|
}
|
|
42443
|
+
function optionDependsOn(option, dependsOn) {
|
|
42444
|
+
const seen = /* @__PURE__ */ new Set();
|
|
42445
|
+
return optionDependsOnRecursive(option);
|
|
42446
|
+
function optionDependsOnRecursive(option2) {
|
|
42447
|
+
var _a;
|
|
42448
|
+
if (addToSeen(seen, option2)) {
|
|
42449
|
+
return some((_a = computedOptions[option2]) == null ? void 0 : _a.dependencies, (dep) => dependsOn.has(dep) || optionDependsOnRecursive(dep));
|
|
42450
|
+
}
|
|
42451
|
+
return false;
|
|
42452
|
+
}
|
|
42453
|
+
}
|
|
42443
42454
|
function optionMapToObject(optionMap) {
|
|
42444
42455
|
return Object.fromEntries(optionMap);
|
|
42445
42456
|
}
|
|
@@ -140971,7 +140982,7 @@ function getExportInfoMap(importingFile, host, program, preferences, cancellatio
|
|
|
140971
140982
|
true,
|
|
140972
140983
|
(moduleSymbol, moduleFile, program2, isFromPackageJson) => {
|
|
140973
140984
|
if (++moduleCount % 100 === 0) cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested();
|
|
140974
|
-
const seenExports = /* @__PURE__ */ new
|
|
140985
|
+
const seenExports = /* @__PURE__ */ new Set();
|
|
140975
140986
|
const checker = program2.getTypeChecker();
|
|
140976
140987
|
const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker);
|
|
140977
140988
|
if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {
|
|
@@ -141033,7 +141044,7 @@ function getNamesForExportedSymbol(defaultExport, checker, scriptTarget) {
|
|
|
141033
141044
|
function forEachNameOfDefaultExport(defaultExport, checker, scriptTarget, cb) {
|
|
141034
141045
|
let chain;
|
|
141035
141046
|
let current = defaultExport;
|
|
141036
|
-
const seen = /* @__PURE__ */ new
|
|
141047
|
+
const seen = /* @__PURE__ */ new Set();
|
|
141037
141048
|
while (current) {
|
|
141038
141049
|
const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current);
|
|
141039
141050
|
if (fromDeclaration) {
|
|
@@ -145499,7 +145510,7 @@ function flattenTypeLiteralNodeReference(checker, selection) {
|
|
|
145499
145510
|
}
|
|
145500
145511
|
if (isIntersectionTypeNode(selection)) {
|
|
145501
145512
|
const result = [];
|
|
145502
|
-
const seen = /* @__PURE__ */ new
|
|
145513
|
+
const seen = /* @__PURE__ */ new Set();
|
|
145503
145514
|
for (const type of selection.types) {
|
|
145504
145515
|
const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);
|
|
145505
145516
|
if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) {
|
|
@@ -156171,7 +156182,7 @@ registerCodeFix({
|
|
|
156171
156182
|
},
|
|
156172
156183
|
fixIds: [fixId13],
|
|
156173
156184
|
getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) {
|
|
156174
|
-
const fixedExportDeclarations = /* @__PURE__ */ new
|
|
156185
|
+
const fixedExportDeclarations = /* @__PURE__ */ new Set();
|
|
156175
156186
|
return codeFixAll(context, errorCodes14, (changes, diag2) => {
|
|
156176
156187
|
const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile);
|
|
156177
156188
|
if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) {
|
|
@@ -156650,7 +156661,7 @@ registerCodeFix({
|
|
|
156650
156661
|
},
|
|
156651
156662
|
fixIds: [fixId17],
|
|
156652
156663
|
getAllCodeActions(context) {
|
|
156653
|
-
const seenClassDeclarations = /* @__PURE__ */ new
|
|
156664
|
+
const seenClassDeclarations = /* @__PURE__ */ new Set();
|
|
156654
156665
|
return codeFixAll(context, errorCodes18, (changes, diag2) => {
|
|
156655
156666
|
const classDeclaration = getClass(diag2.file, diag2.start);
|
|
156656
156667
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -158277,7 +158288,7 @@ registerCodeFix({
|
|
|
158277
158288
|
fixIds: [fixId18],
|
|
158278
158289
|
getAllCodeActions: (context) => {
|
|
158279
158290
|
const { program, preferences, host } = context;
|
|
158280
|
-
const seen = /* @__PURE__ */ new
|
|
158291
|
+
const seen = /* @__PURE__ */ new Set();
|
|
158281
158292
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
158282
158293
|
eachDiagnostic(context, errorCodes20, (diag2) => {
|
|
158283
158294
|
const info = getInfo6(program, diag2.file, createTextSpan(diag2.start, diag2.length));
|
|
@@ -159211,7 +159222,7 @@ registerCodeFix({
|
|
|
159211
159222
|
getAllCodeActions: (context) => {
|
|
159212
159223
|
const { program, fixId: fixId56 } = context;
|
|
159213
159224
|
const checker = program.getTypeChecker();
|
|
159214
|
-
const seen = /* @__PURE__ */ new
|
|
159225
|
+
const seen = /* @__PURE__ */ new Set();
|
|
159215
159226
|
const typeDeclToMembers = /* @__PURE__ */ new Map();
|
|
159216
159227
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
159217
159228
|
eachDiagnostic(context, errorCodes28, (diag2) => {
|
|
@@ -160136,7 +160147,7 @@ registerCodeFix({
|
|
|
160136
160147
|
},
|
|
160137
160148
|
fixIds: [fixId26],
|
|
160138
160149
|
getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) {
|
|
160139
|
-
const seenClassDeclarations = /* @__PURE__ */ new
|
|
160150
|
+
const seenClassDeclarations = /* @__PURE__ */ new Set();
|
|
160140
160151
|
return codeFixAll(context, errorCodes32, (changes, diag2) => {
|
|
160141
160152
|
const classDeclaration = getClass2(diag2.file, diag2.start);
|
|
160142
160153
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -160179,7 +160190,7 @@ registerCodeFix({
|
|
|
160179
160190
|
fixIds: [fixId27],
|
|
160180
160191
|
getAllCodeActions(context) {
|
|
160181
160192
|
const { sourceFile } = context;
|
|
160182
|
-
const seenClasses = /* @__PURE__ */ new
|
|
160193
|
+
const seenClasses = /* @__PURE__ */ new Set();
|
|
160183
160194
|
return codeFixAll(context, errorCodes33, (changes, diag2) => {
|
|
160184
160195
|
const nodes = getNodes(diag2.file, diag2.start);
|
|
160185
160196
|
if (!nodes) return;
|
|
@@ -162123,7 +162134,7 @@ registerCodeFix({
|
|
|
162123
162134
|
},
|
|
162124
162135
|
fixIds: [fixId38],
|
|
162125
162136
|
getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) {
|
|
162126
|
-
const seen = /* @__PURE__ */ new
|
|
162137
|
+
const seen = /* @__PURE__ */ new Set();
|
|
162127
162138
|
return codeFixAll(context, errorCodes49, (changes, diag2) => {
|
|
162128
162139
|
const nodes = getNodes3(diag2.file, diag2.start);
|
|
162129
162140
|
if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore))) return;
|
|
@@ -164989,7 +165000,7 @@ registerCodeFix({
|
|
|
164989
165000
|
},
|
|
164990
165001
|
getAllCodeActions: (context) => {
|
|
164991
165002
|
const { program } = context;
|
|
164992
|
-
const seen = /* @__PURE__ */ new
|
|
165003
|
+
const seen = /* @__PURE__ */ new Set();
|
|
164993
165004
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
164994
165005
|
eachDiagnostic(context, errorCodes65, (diag2) => {
|
|
164995
165006
|
const info = getInfo21(diag2.file, diag2.start, program);
|
|
@@ -167428,7 +167439,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
|
|
|
167428
167439
|
let importSpecifierResolver;
|
|
167429
167440
|
const symbolToOriginInfoMap = [];
|
|
167430
167441
|
const symbolToSortTextMap = [];
|
|
167431
|
-
const seenPropertySymbols = /* @__PURE__ */ new
|
|
167442
|
+
const seenPropertySymbols = /* @__PURE__ */ new Set();
|
|
167432
167443
|
const isTypeOnlyLocation = isTypeOnlyCompletion();
|
|
167433
167444
|
const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {
|
|
167434
167445
|
return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);
|
|
@@ -169192,10 +169203,10 @@ function isArrowFunctionBody(node) {
|
|
|
169192
169203
|
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
|
|
169193
169204
|
node.kind === 39 /* EqualsGreaterThanToken */);
|
|
169194
169205
|
}
|
|
169195
|
-
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new
|
|
169206
|
+
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Set()) {
|
|
169196
169207
|
return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker));
|
|
169197
169208
|
function nonAliasCanBeReferencedAtTypeLocation(symbol2) {
|
|
169198
|
-
return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules,
|
|
169209
|
+
return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules, symbol2) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules));
|
|
169199
169210
|
}
|
|
169200
169211
|
}
|
|
169201
169212
|
function isDeprecated(symbol, checker) {
|
|
@@ -169540,7 +169551,7 @@ function getAlreadyUsedTypesInStringLiteralUnion(union, current) {
|
|
|
169540
169551
|
}
|
|
169541
169552
|
function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) {
|
|
169542
169553
|
let isNewIdentifier = false;
|
|
169543
|
-
const uniques = /* @__PURE__ */ new
|
|
169554
|
+
const uniques = /* @__PURE__ */ new Set();
|
|
169544
169555
|
const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg;
|
|
169545
169556
|
const candidates = checker.getCandidateSignaturesForStringLiteralCompletions(call, editingArgument);
|
|
169546
169557
|
const types = flatMap(candidates, (candidate) => {
|
|
@@ -169580,7 +169591,7 @@ function stringLiteralCompletionsForObjectLiteral(checker, objectLiteralExpressi
|
|
|
169580
169591
|
hasIndexSignature: hasIndexSignature(contextualType)
|
|
169581
169592
|
};
|
|
169582
169593
|
}
|
|
169583
|
-
function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new
|
|
169594
|
+
function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Set()) {
|
|
169584
169595
|
if (!type) return emptyArray;
|
|
169585
169596
|
type = skipConstraint(type);
|
|
169586
169597
|
return type.isUnion() ? flatMap(type.types, (t) => getStringLiteralTypes(t, uniques)) : type.isStringLiteral() && !(type.flags & 1024 /* EnumLiteral */) && addToSeen(uniques, type.value) ? [type] : emptyArray;
|
|
@@ -170868,7 +170879,7 @@ function getImplementationsAtPosition(program, cancellationToken, sourceFiles, s
|
|
|
170868
170879
|
referenceEntries = entries && [...entries];
|
|
170869
170880
|
} else if (entries) {
|
|
170870
170881
|
const queue = createQueue(entries);
|
|
170871
|
-
const seenNodes = /* @__PURE__ */ new
|
|
170882
|
+
const seenNodes = /* @__PURE__ */ new Set();
|
|
170872
170883
|
while (!queue.isEmpty()) {
|
|
170873
170884
|
const entry = queue.dequeue();
|
|
170874
170885
|
if (!addToSeen(seenNodes, getNodeId(entry.node))) {
|
|
@@ -172520,10 +172531,10 @@ var Core;
|
|
|
172520
172531
|
}
|
|
172521
172532
|
}
|
|
172522
172533
|
function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {
|
|
172523
|
-
const seen = /* @__PURE__ */ new
|
|
172534
|
+
const seen = /* @__PURE__ */ new Set();
|
|
172524
172535
|
return recur(symbol);
|
|
172525
172536
|
function recur(symbol2) {
|
|
172526
|
-
if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen,
|
|
172537
|
+
if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, symbol2)) return;
|
|
172527
172538
|
return firstDefined(symbol2.declarations, (declaration) => firstDefined(getAllSuperTypeNodes(declaration), (typeReference) => {
|
|
172528
172539
|
const type = checker.getTypeAtLocation(typeReference);
|
|
172529
172540
|
const propertySymbol = type && type.symbol && checker.getPropertyOfType(type, propertyName);
|
|
@@ -177670,7 +177681,10 @@ var ChangeTracker = class _ChangeTracker {
|
|
|
177670
177681
|
getInsertNodeAtStartInsertOptions(sourceFile, node, indentation) {
|
|
177671
177682
|
const members = getMembersOrProperties(node);
|
|
177672
177683
|
const isEmpty = members.length === 0;
|
|
177673
|
-
const isFirstInsertion =
|
|
177684
|
+
const isFirstInsertion = !this.classesWithNodesInsertedAtStart.has(getNodeId(node));
|
|
177685
|
+
if (isFirstInsertion) {
|
|
177686
|
+
this.classesWithNodesInsertedAtStart.set(getNodeId(node), { node, sourceFile });
|
|
177687
|
+
}
|
|
177674
177688
|
const insertTrailingComma = isObjectLiteralExpression(node) && (!isJsonSourceFile(sourceFile) || !isEmpty);
|
|
177675
177689
|
const insertLeadingComma = isObjectLiteralExpression(node) && isJsonSourceFile(sourceFile) && isEmpty && !isFirstInsertion;
|
|
177676
177690
|
return {
|
|
@@ -188056,7 +188070,7 @@ var _ProjectService = class _ProjectService {
|
|
|
188056
188070
|
*/
|
|
188057
188071
|
this.filenameToScriptInfoVersion = /* @__PURE__ */ new Map();
|
|
188058
188072
|
// Set of all '.js' files ever opened.
|
|
188059
|
-
this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new
|
|
188073
|
+
this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new Set();
|
|
188060
188074
|
/**
|
|
188061
188075
|
* maps external project file name to list of config files that were the part of this project
|
|
188062
188076
|
*/
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "断言要求调用目标为标识符或限定名。",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "--isolatedDeclarations 不支持将属性分配给不声明它们的函数。为分配给此函数的属性添加显式声明。",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "应为 \"*/\"。",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一个访问器必须具有带有 --isolatedDeclarations 的显式类型注释。",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全局范围的扩大仅可直接嵌套在外部模块中或环境模块声明中。",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "全局范围的扩大应具有 \"declare\" 修饰符,除非它们显示在已有的环境上下文中。",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "项目“{0}”中启用了键入内容的自动发现。使用缓存位置“{2}”运行模块“{1}”的额外解决传递。",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "为此文件发出的声明需要保留此导入以进行扩充。--isolatedDeclarations 不支持此功能。",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此文件的声明发出要求使用专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此文件的声明发出要求使用模块 \"{1}\" 中的专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "为此参数发出的声明要求将未定义隐式添加到其类型。--isolatedDeclarations 不支持此功能。",
|
|
549
549
|
"Declaration_expected_1146": "应为声明。",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "声明名称与内置全局标识符“{0}”冲突。",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "应为声明或语句。",
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
"Projects_6255": "项目",
|
|
1250
1250
|
"Projects_in_this_build_Colon_0_6355": "此生成中的项目: {0}",
|
|
1251
1251
|
"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "只有在面向 ECMAScript 2015 及更高版本时,才可使用带有 \"accessor\" 修饰符的属性。",
|
|
1252
|
-
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}
|
|
1252
|
+
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表达式,因为它标记为摘要。",
|
|
1253
1253
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "属性“{0}”来自索引签名,因此必须使用[“{0}”]访问它。",
|
|
1254
1254
|
"Property_0_does_not_exist_on_type_1_2339": "类型“{1}”上不存在属性“{0}”。",
|
|
1255
1255
|
"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "属性“{0}”在类型“{1}”上不存在。你是否指的是“{2}”?",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "判斷提示要求呼叫目標必須為識別碼或限定名稱。",
|
|
302
302
|
"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "在未宣告的情況下,--isolatedDeclarations 不支援指派屬性給函式。新增指派給此函式之屬性的明確宣告。",
|
|
303
303
|
"Asterisk_Slash_expected_1010": "必須是 '*/'。",
|
|
304
|
-
"
|
|
304
|
+
"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一個存取子必須有具備 --isolatedDeclarations 的明確型別註釋。",
|
|
305
305
|
"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全域範圍的增強指定只能在外部模組宣告或環境模組宣告直接巢狀。",
|
|
306
306
|
"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "除非全域範圍的增強指定已顯示在環境內容中,否則應含有 'declare' 修飾元。",
|
|
307
307
|
"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "專案 '{0}' 中已啟用鍵入的自動探索。正在使用快取位置 '{2}' 執行模組 '{1}' 的額外解析傳遞。",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "此檔案發出的宣告需要保留此匯入,以進行增強。該情況不受 --isolatedDeclarations 支援。",
|
|
546
546
|
"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此檔案的宣告發出必須使用私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。",
|
|
547
547
|
"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此檔案的宣告發出必須使用來自模組 '{1}' 的私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。",
|
|
548
|
-
"
|
|
548
|
+
"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "此參數發出的宣告需要隱含地新增未定義值至其類型。此情況不受 --isolatedDeclarations 支援。",
|
|
549
549
|
"Declaration_expected_1146": "必須是宣告。",
|
|
550
550
|
"Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣告名稱與內建全域識別碼 '{0}' 衝突。",
|
|
551
551
|
"Declaration_or_statement_expected_1128": "必須是宣告或陳述式。",
|
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": "5.7.0-dev.
|
|
5
|
+
"version": "5.7.0-dev.20241018",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"node": "20.1.0",
|
|
117
117
|
"npm": "8.19.4"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "54732f6e5895aa692309e70a18027ddc316c20df"
|
|
120
120
|
}
|