typescript 4.9.0-dev.20220919 → 4.9.0-dev.20220920
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/de/diagnosticMessages.generated.json +5 -0
- package/lib/es/diagnosticMessages.generated.json +5 -0
- package/lib/it/diagnosticMessages.generated.json +5 -0
- package/lib/pl/diagnosticMessages.generated.json +5 -0
- package/lib/tr/diagnosticMessages.generated.json +5 -0
- package/lib/tsc.js +65 -55
- package/lib/tsserver.js +95 -89
- package/lib/tsserverlibrary.js +95 -89
- package/lib/typescript.js +94 -87
- package/lib/typescriptServices.js +94 -87
- package/lib/typingsInstaller.js +88 -74
- package/package.json +1 -1
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Der von der {0}()-Methode eines Iterators zurückgegebene Typ muss eine value-Eigenschaft aufweisen.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Die Typen von \"{0}\" sind zwischen diesen Typen nicht kompatibel.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Die von \"{0}\" zurückgegebenen Typen sind zwischen diesen Typen nicht kompatibel.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "Der Wert \"{0}\" kann hier nicht verwendet werden.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Die Variablendeklaration einer for...in-Anweisung darf keinen Initialisierer aufweisen.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Die Variablendeklaration einer for...of-Anweisung darf keinen Initialisierer aufweisen.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Die with-Anweisung wird nicht unterstützt. Alle Symbole in einem with-Block weisen den Typ \"any\" auf.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "\"{0}\" ist keine gültige Metaeigenschaft für das Schlüsselwort \"{1}\". Meinten Sie \"{2}\"?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "\"{0}\" ist als Parametername nicht zulässig.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "\"{0}\" ist als Name für Variablendeklarationen nicht zulässig.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "\"{0}\" ist vom Typ \"unbekannt\".",
|
|
1733
|
+
"_0_is_possibly_null_18047": "\"{0}\" ist möglicherweise \"null\".",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "\"{0}\" ist möglicherweise \"null\" oder \"nicht definiert\".",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "\"{0}\" ist möglicherweise nicht \"nicht definiert\".",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Auf \"{0}\" wird direkt oder indirekt im eigenen Basisausdruck verwiesen.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Auf \"{0}\" wird direkt oder indirekt in der eigenen Typanmerkung verwiesen.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "\"{0}\" wurde mehrmals angegeben, deshalb wird dieses Vorkommen überschrieben.",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "El tipo devuelto por el método \"{0}()\" de un iterador debe tener una propiedad \"value\".",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Los tipos de \"{0}\" son incompatibles entre estos tipos.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Los tipos que \"{0}\" devuelve son incompatibles entre estos tipos.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "El valor \"{0}\" no se puede usar aquí.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La declaración de variable de una instrucción \"for...in\" no puede tener un inicializador.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La declaración de variable de una instrucción \"for...of\" no puede tener un inicializador.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "No se admite la instrucción 'with'. Todos los símbolos de un bloque 'with' tendrán el tipo 'any'.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "\"{0}\" no es una propiedad Meta válida para la palabra clave \"{1}\". ¿Pretendía usar \"{2}\"?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "No se permite “{0}” como nombre de parámetro.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "No se permite \"{0}\" como nombre de declaración de variable.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "\"{0}\" es de tipo \"unknown\".",
|
|
1733
|
+
"_0_is_possibly_null_18047": "\"{0}\" es posiblemente \"null\".",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "\"{0}\" es posiblemente \"null\" o \"undefined\".",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "\"{0}\" es posiblemente \"undefined\".",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Se hace referencia a '{0}' directa o indirectamente en su propia expresión base.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Se hace referencia a '{0}' directa o indirectamente en su propia anotación de tipo.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "\"{0}\" se ha especificado más de una vez, por lo que se sobrescribirá este uso.",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Il tipo restituito dal metodo '{0}()' di un iteratore deve contenere una proprietà 'value'.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "I tipi di '{0}' sono incompatibili tra questi tipi.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "I tipi restituiti da '{0}' sono incompatibili tra questi tipi.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "Non è possibile usare qui il valore '{0}'.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La dichiarazione di variabile di un'istruzione 'for...in' non può contenere un inizializzatore.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La dichiarazione di variabile di un'istruzione 'for...of' non può contenere un inizializzatore.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'istruzione 'with' non è supportata. Il tipo di tutti i simboli in un blocco 'with' è 'any'.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' non è una metaproprietà valida per la parola chiave '{1}'. Si intendeva '{2}'?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' non è un nome di parametro consentito.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' non è consentito come nome di una dichiarazione di variabile.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}' è di tipo 'unknown'.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}' è probabilmente 'null'.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}' è probabilmente 'null' o 'undefined'.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}' è probabilmente 'undefined'.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' viene usato come riferimento diretto o indiretto nella relativa espressione di base.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' viene usato come riferimento diretto o indiretto nella relativa annotazione di tipo.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' è specificato più di una volta, quindi il relativo utilizzo verrà sovrascritto.",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Typ zwracany przez metodę „{0}()” iteratora musi mieć właściwość „value”.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Typy elementu „{0}” są niezgodne między tymi typami.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Typy zwrócone przez element „{0}” są niezgodne między tymi typami.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "W tym miejscu nie można użyć wartości „{0}”.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Deklaracja zmiennej instrukcji „for...in” nie może mieć inicjatora.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Deklaracja zmiennej instrukcji „for...of” nie może mieć inicjatora.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Instrukcja „with” nie jest obsługiwana. Wszystkie symbole w bloku „with” będą mieć typ „any”.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "„{0}” nie jest prawidłową metawłaściwością słowa kluczowego „{1}”. Czy miał to być element „{2}”?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "„{0}” jest niedozwolone jako nazwa parametru.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "Element „{0}” nie jest dozwolony jako nazwa deklaracji zmiennej.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "Element „{0}” jest typu „nieznany”.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "Element „{0}” prawdopodobnie ma wartość „null”.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "Element „{0}” prawdopodobnie ma wartość „null” lub jest „niezdefiniowany”.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "Element „{0}” jest prawdopodobnie „niezdefiniowany”.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Element „{0}” jest przywoływany bezpośrednio lub pośrednio w jego własnym wyrażeniu podstawowym.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Element „{0}” jest przywoływany bezpośrednio lub pośrednio w jego własnej adnotacji typu.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "Element „{0}” został określony więcej niż raz, dlatego to użycie zostanie przesłonięte.",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Bir yineleyicinin '{0}()' metodu tarafından döndürülen tür, 'value' özelliğine sahip olmalıdır.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "'{0}' türleri bu türler arasında uyumsuz.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "'{0}' tarafından döndürülen türler, bu türler arasında uyumsuz.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "'{0}' değeri burada kullanılamaz.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' deyiminin değişken bildirimi bir başlatıcıya sahip olamaz.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' deyiminin değişken bildirimi bir başlatıcıya sahip olamaz.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' ifadesi desteklenmiyor. 'with' bloklarındaki tüm simgeler 'any' türüne sahip olacaktır.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}', '{1}' anahtar sözcüğü için geçerli bir meta özellik değil. Bunu mu demek istediniz: '{2}'?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' öğesine parametre adı olarak izin verilmiyor.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' öğesinin değişken bildirim adı olarak kullanılmasına izin verilmiyor.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}' 'unknown' türünde.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}' değerinin 'null' olması olasıdır.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}' değerinin 'null' veya 'undefined' olması olasıdır.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}' değerinin 'undefined' olması olasıdır.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' öğesine kendi temel ifadesinde doğrudan veya dolaylı olarak başvuruluyor.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' öğesine kendi tür ek açıklamasında doğrudan veya dolaylı olarak başvuruluyor.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' birden çok kez belirtildiğinden bu kullanımın üzerine yazılacak.",
|
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.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220920");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -2266,7 +2266,7 @@ var ts;
|
|
|
2266
2266
|
if (typeof func !== "function") {
|
|
2267
2267
|
return "";
|
|
2268
2268
|
}
|
|
2269
|
-
else if (
|
|
2269
|
+
else if (ts.hasProperty(func, "name")) {
|
|
2270
2270
|
return func.name;
|
|
2271
2271
|
}
|
|
2272
2272
|
else {
|
|
@@ -2564,7 +2564,7 @@ var ts;
|
|
|
2564
2564
|
];
|
|
2565
2565
|
for (var _i = 0, nodeConstructors_1 = nodeConstructors; _i < nodeConstructors_1.length; _i++) {
|
|
2566
2566
|
var ctor = nodeConstructors_1[_i];
|
|
2567
|
-
if (!
|
|
2567
|
+
if (!ts.hasProperty(ctor, "__debugKind")) {
|
|
2568
2568
|
Object.defineProperties(ctor.prototype, {
|
|
2569
2569
|
__tsDebuggerDisplay: {
|
|
2570
2570
|
value: function () {
|
|
@@ -3268,7 +3268,6 @@ var ts;
|
|
|
3268
3268
|
var typeCatalog = [];
|
|
3269
3269
|
var legendPath;
|
|
3270
3270
|
var legend = [];
|
|
3271
|
-
;
|
|
3272
3271
|
function startTracing(tracingMode, traceDir, configFilePath) {
|
|
3273
3272
|
ts.Debug.assert(!ts.tracing, "Tracing already started");
|
|
3274
3273
|
if (fs === undefined) {
|
|
@@ -5854,8 +5853,6 @@ var ts;
|
|
|
5854
5853
|
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, ts.DiagnosticCategory.Error, "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357", "The operand of an increment or decrement operator must be a variable or a property access."),
|
|
5855
5854
|
The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, ts.DiagnosticCategory.Error, "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358", "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),
|
|
5856
5855
|
The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: diag(2359, ts.DiagnosticCategory.Error, "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359", "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),
|
|
5857
|
-
The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol: diag(2360, ts.DiagnosticCategory.Error, "The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360", "The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),
|
|
5858
|
-
The_right_hand_side_of_an_in_expression_must_not_be_a_primitive: diag(2361, ts.DiagnosticCategory.Error, "The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361", "The right-hand side of an 'in' expression must not be a primitive."),
|
|
5859
5856
|
The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2362, ts.DiagnosticCategory.Error, "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362", "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),
|
|
5860
5857
|
The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2363, ts.DiagnosticCategory.Error, "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363", "The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),
|
|
5861
5858
|
The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: diag(2364, ts.DiagnosticCategory.Error, "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364", "The left-hand side of an assignment expression must be a variable or a property access."),
|
|
@@ -6104,6 +6101,7 @@ var ts;
|
|
|
6104
6101
|
Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable: diag(2635, ts.DiagnosticCategory.Error, "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635", "Type '{0}' has no signatures for which the type argument list is applicable."),
|
|
6105
6102
|
Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation: diag(2636, ts.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636", "Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),
|
|
6106
6103
|
Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types: diag(2637, ts.DiagnosticCategory.Error, "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637", "Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),
|
|
6104
|
+
Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, ts.DiagnosticCategory.Error, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
|
|
6107
6105
|
Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, ts.DiagnosticCategory.Error, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
|
|
6108
6106
|
A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, ts.DiagnosticCategory.Error, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
|
|
6109
6107
|
Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, ts.DiagnosticCategory.Error, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
|
|
@@ -7425,7 +7423,7 @@ var ts;
|
|
|
7425
7423
|
}
|
|
7426
7424
|
ts.stringToToken = stringToToken;
|
|
7427
7425
|
function computeLineStarts(text) {
|
|
7428
|
-
var result =
|
|
7426
|
+
var result = [];
|
|
7429
7427
|
var pos = 0;
|
|
7430
7428
|
var lineStart = 0;
|
|
7431
7429
|
while (pos < text.length) {
|
|
@@ -10131,7 +10129,7 @@ var ts;
|
|
|
10131
10129
|
}
|
|
10132
10130
|
ts.isToken = isToken;
|
|
10133
10131
|
function isNodeArray(array) {
|
|
10134
|
-
return
|
|
10132
|
+
return ts.hasProperty(array, "pos") && ts.hasProperty(array, "end");
|
|
10135
10133
|
}
|
|
10136
10134
|
ts.isNodeArray = isNodeArray;
|
|
10137
10135
|
function isLiteralKind(kind) {
|
|
@@ -11415,7 +11413,6 @@ var ts;
|
|
|
11415
11413
|
return emitNode && emitNode.flags || 0;
|
|
11416
11414
|
}
|
|
11417
11415
|
ts.getEmitFlags = getEmitFlags;
|
|
11418
|
-
;
|
|
11419
11416
|
function getScriptTargetFeatures() {
|
|
11420
11417
|
return {
|
|
11421
11418
|
es2015: {
|
|
@@ -15506,7 +15503,7 @@ var ts;
|
|
|
15506
15503
|
return node.initializer !== undefined;
|
|
15507
15504
|
}
|
|
15508
15505
|
function isWatchSet(options) {
|
|
15509
|
-
return options.watch &&
|
|
15506
|
+
return options.watch && ts.hasProperty(options, "watch");
|
|
15510
15507
|
}
|
|
15511
15508
|
ts.isWatchSet = isWatchSet;
|
|
15512
15509
|
function closeFileWatcher(watcher) {
|
|
@@ -21716,7 +21713,7 @@ var ts;
|
|
|
21716
21713
|
clone.transformFlags = node.transformFlags;
|
|
21717
21714
|
setOriginalNode(clone, node);
|
|
21718
21715
|
for (var key in node) {
|
|
21719
|
-
if (
|
|
21716
|
+
if (ts.hasProperty(clone, key) || !ts.hasProperty(node, key)) {
|
|
21720
21717
|
continue;
|
|
21721
21718
|
}
|
|
21722
21719
|
clone[key] = node[key];
|
|
@@ -25760,7 +25757,6 @@ var ts;
|
|
|
25760
25757
|
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
25761
25758
|
visitNode(cbNode, node.type);
|
|
25762
25759
|
}
|
|
25763
|
-
;
|
|
25764
25760
|
function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) {
|
|
25765
25761
|
return visitNodes(cbNode, cbNodes, node.types);
|
|
25766
25762
|
}
|
|
@@ -35256,7 +35252,7 @@ var ts;
|
|
|
35256
35252
|
function convertCompilerOptionsForTelemetry(opts) {
|
|
35257
35253
|
var out = {};
|
|
35258
35254
|
for (var key in opts) {
|
|
35259
|
-
if (
|
|
35255
|
+
if (ts.hasProperty(opts, key)) {
|
|
35260
35256
|
var type = getOptionFromName(key);
|
|
35261
35257
|
if (type !== undefined) {
|
|
35262
35258
|
out[key] = getOptionValueWithEmptyStrings(opts[key], type);
|
|
@@ -40758,7 +40754,8 @@ var ts;
|
|
|
40758
40754
|
var emptyTypeLiteralSymbol = createSymbol(2048, "__type");
|
|
40759
40755
|
emptyTypeLiteralSymbol.members = ts.createSymbolTable();
|
|
40760
40756
|
var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
40761
|
-
var
|
|
40757
|
+
var unknownEmptyObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
40758
|
+
var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
40762
40759
|
var emptyGenericType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
40763
40760
|
emptyGenericType.instantiations = new ts.Map();
|
|
40764
40761
|
var anyFunctionType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);
|
|
@@ -40861,6 +40858,7 @@ var ts;
|
|
|
40861
40858
|
var deferredGlobalOmitSymbol;
|
|
40862
40859
|
var deferredGlobalAwaitedSymbol;
|
|
40863
40860
|
var deferredGlobalBigIntType;
|
|
40861
|
+
var deferredGlobalRecordSymbol;
|
|
40864
40862
|
var allPotentiallyUnusedIdentifiers = new ts.Map();
|
|
40865
40863
|
var flowLoopStart = 0;
|
|
40866
40864
|
var flowLoopCount = 0;
|
|
@@ -41569,10 +41567,10 @@ var ts;
|
|
|
41569
41567
|
return (ts.isAssertionExpression(location) && ts.isConstTypeReference(location.type))
|
|
41570
41568
|
|| (ts.isJSDocTypeTag(location) && ts.isConstTypeReference(location.typeExpression));
|
|
41571
41569
|
}
|
|
41572
|
-
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
41570
|
+
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions) {
|
|
41573
41571
|
if (excludeGlobals === void 0) { excludeGlobals = false; }
|
|
41574
|
-
if (
|
|
41575
|
-
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
41572
|
+
if (getSpellingSuggestions === void 0) { getSpellingSuggestions = true; }
|
|
41573
|
+
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, getSymbol);
|
|
41576
41574
|
}
|
|
41577
41575
|
function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {
|
|
41578
41576
|
var _a, _b, _c;
|
|
@@ -41683,7 +41681,9 @@ var ts;
|
|
|
41683
41681
|
break;
|
|
41684
41682
|
}
|
|
41685
41683
|
if (lastLocation && ts.isStatic(lastLocation)) {
|
|
41686
|
-
|
|
41684
|
+
if (nameNotFoundMessage) {
|
|
41685
|
+
error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
|
|
41686
|
+
}
|
|
41687
41687
|
return undefined;
|
|
41688
41688
|
}
|
|
41689
41689
|
break loop;
|
|
@@ -41711,7 +41711,9 @@ var ts;
|
|
|
41711
41711
|
grandparent = location.parent.parent;
|
|
41712
41712
|
if (ts.isClassLike(grandparent) || grandparent.kind === 261) {
|
|
41713
41713
|
if (result = lookup(getSymbolOfNode(grandparent).members, name, meaning & 788968)) {
|
|
41714
|
-
|
|
41714
|
+
if (nameNotFoundMessage) {
|
|
41715
|
+
error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
|
|
41716
|
+
}
|
|
41715
41717
|
return undefined;
|
|
41716
41718
|
}
|
|
41717
41719
|
}
|
|
@@ -41871,7 +41873,7 @@ var ts;
|
|
|
41871
41873
|
}
|
|
41872
41874
|
return undefined;
|
|
41873
41875
|
}
|
|
41874
|
-
else if (checkAndReportErrorForInvalidInitializer()) {
|
|
41876
|
+
else if (nameNotFoundMessage && checkAndReportErrorForInvalidInitializer()) {
|
|
41875
41877
|
return undefined;
|
|
41876
41878
|
}
|
|
41877
41879
|
if (nameNotFoundMessage) {
|
|
@@ -47241,7 +47243,6 @@ var ts;
|
|
|
47241
47243
|
return container;
|
|
47242
47244
|
}
|
|
47243
47245
|
}
|
|
47244
|
-
;
|
|
47245
47246
|
}
|
|
47246
47247
|
function getFlowTypeFromCommonJSExport(symbol) {
|
|
47247
47248
|
var file = ts.getSourceFileOfNode(symbol.declarations[0]);
|
|
@@ -51412,6 +51413,10 @@ var ts;
|
|
|
51412
51413
|
function getGlobalBigIntType() {
|
|
51413
51414
|
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", 0, false))) || emptyObjectType;
|
|
51414
51415
|
}
|
|
51416
|
+
function getGlobalRecordSymbol() {
|
|
51417
|
+
deferredGlobalRecordSymbol || (deferredGlobalRecordSymbol = getGlobalTypeAliasSymbol("Record", 2, true) || unknownSymbol);
|
|
51418
|
+
return deferredGlobalRecordSymbol === unknownSymbol ? undefined : deferredGlobalRecordSymbol;
|
|
51419
|
+
}
|
|
51415
51420
|
function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) {
|
|
51416
51421
|
return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType;
|
|
51417
51422
|
}
|
|
@@ -60408,18 +60413,22 @@ var ts;
|
|
|
60408
60413
|
}
|
|
60409
60414
|
function isTypePresencePossible(type, propName, assumeTrue) {
|
|
60410
60415
|
var prop = getPropertyOfType(type, propName);
|
|
60411
|
-
|
|
60412
|
-
|
|
60413
|
-
|
|
60414
|
-
|
|
60415
|
-
|
|
60416
|
-
|
|
60417
|
-
|
|
60418
|
-
|
|
60419
|
-
|| ts.isThisTypeParameter(type)
|
|
60420
|
-
|| type.flags & 2097152 && ts.every(type.types, function (t) { return t.symbol !== globalThisSymbol; })) {
|
|
60416
|
+
return prop ?
|
|
60417
|
+
!!(prop.flags & 16777216) || assumeTrue :
|
|
60418
|
+
!!getApplicableIndexInfoForName(type, propName) || !assumeTrue;
|
|
60419
|
+
}
|
|
60420
|
+
function narrowByInKeyword(type, nameType, assumeTrue) {
|
|
60421
|
+
var name = getPropertyNameFromType(nameType);
|
|
60422
|
+
var isKnownProperty = someType(type, function (t) { return isTypePresencePossible(t, name, true); });
|
|
60423
|
+
if (isKnownProperty) {
|
|
60421
60424
|
return filterType(type, function (t) { return isTypePresencePossible(t, name, assumeTrue); });
|
|
60422
60425
|
}
|
|
60426
|
+
if (assumeTrue) {
|
|
60427
|
+
var recordSymbol = getGlobalRecordSymbol();
|
|
60428
|
+
if (recordSymbol) {
|
|
60429
|
+
return getIntersectionType([type, getTypeAliasInstantiation(recordSymbol, [nameType, unknownType])]);
|
|
60430
|
+
}
|
|
60431
|
+
}
|
|
60423
60432
|
return type;
|
|
60424
60433
|
}
|
|
60425
60434
|
function narrowTypeByBinaryExpression(type, expr, assumeTrue) {
|
|
@@ -60478,15 +60487,14 @@ var ts;
|
|
|
60478
60487
|
return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue);
|
|
60479
60488
|
}
|
|
60480
60489
|
var target = getReferenceCandidate(expr.right);
|
|
60481
|
-
var leftType =
|
|
60482
|
-
if (leftType.flags &
|
|
60483
|
-
var name = ts.escapeLeadingUnderscores(leftType.value);
|
|
60490
|
+
var leftType = getTypeOfExpression(expr.left);
|
|
60491
|
+
if (leftType.flags & 8576) {
|
|
60484
60492
|
if (containsMissingType(type) && ts.isAccessExpression(reference) && isMatchingReference(reference.expression, target) &&
|
|
60485
|
-
getAccessedPropertyName(reference) ===
|
|
60493
|
+
getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) {
|
|
60486
60494
|
return getTypeWithFacts(type, assumeTrue ? 524288 : 65536);
|
|
60487
60495
|
}
|
|
60488
60496
|
if (isMatchingReference(reference, target)) {
|
|
60489
|
-
return narrowByInKeyword(type,
|
|
60497
|
+
return narrowByInKeyword(type, leftType, assumeTrue);
|
|
60490
60498
|
}
|
|
60491
60499
|
}
|
|
60492
60500
|
break;
|
|
@@ -64002,7 +64010,6 @@ var ts;
|
|
|
64002
64010
|
}
|
|
64003
64011
|
return false;
|
|
64004
64012
|
}
|
|
64005
|
-
;
|
|
64006
64013
|
var suggestedMethod = ts.isAssignmentTarget(expr) ? "set" : "get";
|
|
64007
64014
|
if (!hasProp(suggestedMethod)) {
|
|
64008
64015
|
return undefined;
|
|
@@ -67085,6 +67092,9 @@ var ts;
|
|
|
67085
67092
|
}
|
|
67086
67093
|
return booleanType;
|
|
67087
67094
|
}
|
|
67095
|
+
function hasEmptyObjectIntersection(type) {
|
|
67096
|
+
return someType(type, function (t) { return t === unknownEmptyObjectType || !!(t.flags & 2097152) && ts.some(t.types, isEmptyAnonymousObjectType); });
|
|
67097
|
+
}
|
|
67088
67098
|
function checkInExpression(left, right, leftType, rightType) {
|
|
67089
67099
|
if (leftType === silentNeverType || rightType === silentNeverType) {
|
|
67090
67100
|
return silentNeverType;
|
|
@@ -67099,18 +67109,12 @@ var ts;
|
|
|
67099
67109
|
}
|
|
67100
67110
|
}
|
|
67101
67111
|
else {
|
|
67102
|
-
|
|
67103
|
-
if (!(allTypesAssignableToKind(leftType, 402653316 | 296 | 12288) ||
|
|
67104
|
-
isTypeAssignableToKind(leftType, 4194304 | 134217728 | 268435456 | 262144))) {
|
|
67105
|
-
error(left, ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);
|
|
67106
|
-
}
|
|
67112
|
+
checkTypeAssignableTo(checkNonNullType(leftType, left), stringNumberSymbolType, left);
|
|
67107
67113
|
}
|
|
67108
|
-
|
|
67109
|
-
|
|
67110
|
-
|
|
67111
|
-
|
|
67112
|
-
!maybeTypeOfKind(rightTypeConstraint, 67108864 | 58982400 | 524288))) {
|
|
67113
|
-
error(right, ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive);
|
|
67114
|
+
if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) {
|
|
67115
|
+
if (hasEmptyObjectIntersection(rightType)) {
|
|
67116
|
+
error(right, ts.Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType));
|
|
67117
|
+
}
|
|
67114
67118
|
}
|
|
67115
67119
|
return booleanType;
|
|
67116
67120
|
}
|
|
@@ -74399,7 +74403,7 @@ var ts;
|
|
|
74399
74403
|
}
|
|
74400
74404
|
var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);
|
|
74401
74405
|
if (node) {
|
|
74402
|
-
var symbol =
|
|
74406
|
+
var symbol = getReferencedValueOrAliasSymbol(node);
|
|
74403
74407
|
if (isNonLocalAlias(symbol, 111551) && !getTypeOnlyAliasDeclaration(symbol)) {
|
|
74404
74408
|
return getDeclarationOfAliasSymbol(symbol);
|
|
74405
74409
|
}
|
|
@@ -74720,6 +74724,13 @@ var ts;
|
|
|
74720
74724
|
}
|
|
74721
74725
|
return resolveName(location, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true);
|
|
74722
74726
|
}
|
|
74727
|
+
function getReferencedValueOrAliasSymbol(reference) {
|
|
74728
|
+
var resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
|
|
74729
|
+
if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
|
|
74730
|
+
return resolvedSymbol;
|
|
74731
|
+
}
|
|
74732
|
+
return resolveName(reference, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true, undefined, undefined);
|
|
74733
|
+
}
|
|
74723
74734
|
function getReferencedValueDeclaration(referenceIn) {
|
|
74724
74735
|
if (!ts.isGeneratedIdentifier(referenceIn)) {
|
|
74725
74736
|
var reference = ts.getParseTreeNode(referenceIn, ts.isIdentifier);
|
|
@@ -80018,9 +80029,10 @@ var ts;
|
|
|
80018
80029
|
return ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined;
|
|
80019
80030
|
}
|
|
80020
80031
|
function shouldEmitAliasDeclaration(node) {
|
|
80021
|
-
return
|
|
80022
|
-
|
|
80023
|
-
|
|
80032
|
+
return ts.isInJSFile(node) ||
|
|
80033
|
+
(compilerOptions.preserveValueImports
|
|
80034
|
+
? resolver.isValueAliasDeclaration(node)
|
|
80035
|
+
: resolver.isReferencedAliasDeclaration(node));
|
|
80024
80036
|
}
|
|
80025
80037
|
}
|
|
80026
80038
|
ts.transformTypeScript = transformTypeScript;
|
|
@@ -90806,7 +90818,7 @@ var ts;
|
|
|
90806
90818
|
var _a;
|
|
90807
90819
|
var primaryDeclaration = (_a = parentSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return ts.getSourceFileOfNode(d) === containingFile; });
|
|
90808
90820
|
var augmentingDeclarations = ts.filter(symbol.declarations, function (d) { return ts.getSourceFileOfNode(d) !== containingFile; });
|
|
90809
|
-
if (augmentingDeclarations) {
|
|
90821
|
+
if (primaryDeclaration && augmentingDeclarations) {
|
|
90810
90822
|
for (var _i = 0, augmentingDeclarations_1 = augmentingDeclarations; _i < augmentingDeclarations_1.length; _i++) {
|
|
90811
90823
|
var augmentations = augmentingDeclarations_1[_i];
|
|
90812
90824
|
context.addDiagnostic(ts.addRelatedInfo(ts.createDiagnosticForNode(augmentations, ts.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), ts.createDiagnosticForNode(primaryDeclaration, ts.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)));
|
|
@@ -98086,7 +98098,6 @@ var ts;
|
|
|
98086
98098
|
return resolutions;
|
|
98087
98099
|
}
|
|
98088
98100
|
ts.loadWithTypeDirectiveCache = loadWithTypeDirectiveCache;
|
|
98089
|
-
;
|
|
98090
98101
|
function getModeForFileReference(ref, containingFileMode) {
|
|
98091
98102
|
return (ts.isString(ref) ? containingFileMode : ref.resolutionMode) || containingFileMode;
|
|
98092
98103
|
}
|
|
@@ -107301,7 +107312,6 @@ var ts;
|
|
|
107301
107312
|
var colors = createColors(sys);
|
|
107302
107313
|
var header = [];
|
|
107303
107314
|
var terminalWidth = (_b = (_a = sys.getWidthOfTerminal) === null || _a === void 0 ? void 0 : _a.call(sys)) !== null && _b !== void 0 ? _b : 0;
|
|
107304
|
-
;
|
|
107305
107315
|
var tsIconLength = 5;
|
|
107306
107316
|
var tsIconFirstLine = colors.blueBackground(ts.padLeft("", tsIconLength));
|
|
107307
107317
|
var tsIconSecondLine = colors.blueBackground(colors.brightWhite(ts.padLeft("TS ", tsIconLength)));
|