@typescript-deploys/pr-build 4.9.0-pr-50404-15 → 4.9.0-pr-50759-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cs/diagnosticMessages.generated.json +5 -0
- package/lib/de/diagnosticMessages.generated.json +5 -0
- package/lib/es/diagnosticMessages.generated.json +5 -0
- package/lib/fr/diagnosticMessages.generated.json +5 -0
- package/lib/it/diagnosticMessages.generated.json +5 -0
- package/lib/ja/diagnosticMessages.generated.json +5 -0
- package/lib/ko/diagnosticMessages.generated.json +5 -0
- package/lib/lib.es5.d.ts +4 -0
- package/lib/pl/diagnosticMessages.generated.json +5 -0
- package/lib/pt-br/diagnosticMessages.generated.json +5 -0
- package/lib/ru/diagnosticMessages.generated.json +5 -0
- package/lib/tr/diagnosticMessages.generated.json +5 -0
- package/lib/tsc.js +35 -27
- package/lib/tsserver.js +41 -42
- package/lib/tsserverlibrary.js +41 -42
- package/lib/typescript.js +41 -42
- package/lib/typescriptServices.js +41 -42
- package/lib/typingsInstaller.js +41 -42
- package/lib/zh-cn/diagnosticMessages.generated.json +5 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +5 -0
- 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": "Typ vrácený metodou {0}() iterátoru musí obsahovat vlastnost value.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Typy {0} nejsou mezi těmito typy kompatibilní.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Typy vrácené metodou {0} nejsou mezi těmito typy kompatibilní.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "Hodnota „{0}“ se tady nedá použít.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Deklarace proměnné příkazu for...in nemůže obsahovat inicializátor.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Deklarace proměnné příkazu for...of nemůže obsahovat inicializátor.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Příkaz with není podporovaný. Všechny symboly s blokem with budou typu any.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "{0} není platnou metavlastností pro klíčové slovo {1}. Měli jste na mysli {2}?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "{0} není povolen jako název parametru.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "{0} se nepovoluje jako název deklarace proměnné.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "„{0}“ je typ unknown",
|
|
1733
|
+
"_0_is_possibly_null_18047": "„{0}“ je pravděpodobně typ null.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "„{0}“ je typ null nebo undefined",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "„{0}“ je pravděpodobně typ undefined.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Na {0} se přímo nebo nepřímo odkazuje ve vlastním základním výrazu.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Na {0} se odkazuje přímo nebo nepřímo v jeho vlastní anotaci typu.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "{0} se zadalo více než jednou, proto se toto použití přepíše.",
|
|
@@ -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": "Le type retourné par la méthode '{0}()' d'un itérateur doit avoir une propriété 'value'.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Les types de '{0}' sont incompatibles entre eux.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Les types retournés par '{0}' sont incompatibles entre eux.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "La valeur '{0}' ne peut pas être utilisée ici.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La déclaration de variable d'une instruction 'for...in' ne peut pas avoir d'initialiseur.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La déclaration de variable d'une instruction 'for...of' ne peut pas avoir d'initialiseur.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'instruction 'with' n'est pas prise en charge. Tous les symboles d'un bloc 'with' ont le type 'any'.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' n'est pas une métapropriété valide pour le mot clé '{1}'. Est-ce qu'il ne s'agit pas plutôt de '{2}' ?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' n'est pas autorisé comme nom de paramètre.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' n'est pas autorisé en tant que nom de déclaration de variable.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}' est de type 'unknown'.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}' est peut-être 'null'.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}' est peut-être 'null' ou 'undefined'.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}' est peut-être 'non défini'.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' est référencé directement ou indirectement dans sa propre expression de base.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' est référencé directement ou indirectement dans sa propre annotation de type.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' est spécifié plusieurs fois. Cette utilisation va donc être remplacée.",
|
|
@@ -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": "反復子の '{0}()' メソッドによって返される型には 'value' プロパティが必要です。",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "'{0}' の型は、これらの型同士で互換性がありません。",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "'{0}' によって返された型は、これらの型同士で互換性がありません。",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "値 '{0}' はここでは使用できません。",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' ステートメントの変数宣言に初期化子を指定することはできません。",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' ステートメントの変数宣言に初期化子を指定することはできません。",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' ステートメントはサポートされていません。'with' ブロック内のすべてのシンボルの型は 'any' になります。",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' はキーワード '{1}' に関するメタプロパティとして無効です。候補: '{2}'。",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' はパラメーター名として使用できません。",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' は変数宣言の名前として使用できません。",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}''は 'unknown' 型です。",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}' は 'null' の可能性があります。",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}' は 'null' か 'undefined' の可能性があります。",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}' は 'undefined' の可能性があります。",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' はそれ自身のベース式内で直接または間接的に参照されます。",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' はそれ自身の型の注釈内で直接または間接的に参照されます。",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' が複数回指定されているため、ここでの使用は上書きされます。",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "반복기의 '{0}()' 메서드에 의해 반환되는 형식에는 'value' 속성이 있어야 합니다.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "'{0}'의 형식은 해당 형식 간에 호환되지 않습니다.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "'{0}'에서 반환되는 형식은 해당 형식 간에 호환되지 않습니다.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "여기서는 '{0}' 값을 사용할 수 없습니다.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' 문은 지원되지 않습니다. 'with' 블록의 모든 기호가 'any' 형식이 됩니다.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}'은(는) '{1}' 키워드에 대한 올바른 메타 속성이 아닙니다. '{2}'을(를) 사용하시겠습니까?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}'은(는) 매개 변수 이름으로 사용할 수 없습니다.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}'은(는) 변수 선언 이름으로 사용할 수 없습니다.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}'은(는) 'unknown' 형식입니다.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}'은(는) 'null'일 수 있습니다.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}'은(는) 'null' 또는 'undefined'일 수 있습니다.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}'은(는) 'undefined'일 수 있습니다.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}'은(는) 자체 기본 식에서 직간접적으로 참조됩니다.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}'은(는) 자체 형식 주석에서 직간접적으로 참조됩니다.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}'이(가) 두 번 이상 지정되어 이 사용량을 덮어씁니다.",
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -960,6 +960,10 @@ interface RegExpExecArray extends Array<string> {
|
|
|
960
960
|
* A copy of the search string.
|
|
961
961
|
*/
|
|
962
962
|
input: string;
|
|
963
|
+
/**
|
|
964
|
+
* The first match. This will always be present because `null` will be returned if there are no matches.
|
|
965
|
+
*/
|
|
966
|
+
0: string;
|
|
963
967
|
}
|
|
964
968
|
|
|
965
969
|
interface RegExp {
|
|
@@ -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": "O tipo retornado pelo método '{0}()' de um iterador deve ter uma propriedade 'value'.",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Os tipos de '{0}' são incompatíveis entre esses tipos.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Os tipos retornados por '{0}' são incompatíveis entre esses tipos.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "O valor '{0}' não pode ser usado aqui.",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "A declaração de variável de uma instrução 'for...in' não pode ter um inicializador.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "A declaração de variável de uma instrução 'for...of' não pode ter um inicializador.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "A instrução \"with\" não tem suporte. Todos os símbolos em um bloco \"with\" terão o tipo \"any\".",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' não é uma metapropriedade para a palavra-chave '{1}'. Você quis dizer '{2}'?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' não é permitido como um nome de parâmetro.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' não é permitido como um nome de declaração de variável.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "'{0}' é do tipo 'desconhecido'.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "'{0}' é possivelmente 'null'.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "'{0}' é possivelmente 'null' ou 'undefined'.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "'{0}' é possivelmente 'indefinido'.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' é referenciado direta ou indiretamente em sua própria expressão base.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' é referenciado direta ou indiretamente em sua própria anotação de tipo.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' foi especificado mais de uma vez, portanto esse uso será substituído.",
|
|
@@ -1469,6 +1469,7 @@
|
|
|
1469
1469
|
"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Тип, возвращаемый методом \"{0}()\" итератора, должен содержать свойство \"value\".",
|
|
1470
1470
|
"The_types_of_0_are_incompatible_between_these_types_2200": "Типы \"{0}\" несовместимы между этими типами.",
|
|
1471
1471
|
"The_types_returned_by_0_are_incompatible_between_these_types_2201": "Типы, возвращаемые \"{0}\", несовместимы между этими типами.",
|
|
1472
|
+
"The_value_0_cannot_be_used_here_18050": "Здесь нельзя использовать значение \"{0}\".",
|
|
1472
1473
|
"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Объявление переменной оператора for...in не может содержать инициализатор.",
|
|
1473
1474
|
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Объявление переменной оператора for...of не может содержать инициализатор.",
|
|
1474
1475
|
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Оператор with не поддерживается. Все символы в блоке with получат тип any.",
|
|
@@ -1728,6 +1729,10 @@
|
|
|
1728
1729
|
"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "\"{0}\" не является допустимым метасвойством для ключевого слова \"{1}\". Вы имели в виду \"{2}\"?",
|
|
1729
1730
|
"_0_is_not_allowed_as_a_parameter_name_1390": "\"{0}\" не является допустимым именем параметра.",
|
|
1730
1731
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "Использование \"{0}\" в качестве имени объявления переменной не допускается.",
|
|
1732
|
+
"_0_is_of_type_unknown_18046": "\"{0}\" относится к типу unknown.",
|
|
1733
|
+
"_0_is_possibly_null_18047": "Возможно, \"{0}\" имеет значение null.",
|
|
1734
|
+
"_0_is_possibly_null_or_undefined_18049": "Возможно, \"{0}\" имеет значение null или undefined.",
|
|
1735
|
+
"_0_is_possibly_undefined_18048": "Возможно, \"{0}\" имеет значение undefined.",
|
|
1731
1736
|
"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "На \"{0}\" есть прямые или непрямые ссылки в его собственном базовом выражении.",
|
|
1732
1737
|
"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "На \"{0}\" есть прямые или непрямые ссылки в его собственной аннотации типа.",
|
|
1733
1738
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "\"{0}\" указан несколько раз, поэтому такое использование будет перезаписано.",
|
|
@@ -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-insiders.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220919");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -40638,6 +40638,7 @@ var ts;
|
|
|
40638
40638
|
isPropertyAccessible: isPropertyAccessible,
|
|
40639
40639
|
getTypeOnlyAliasDeclaration: getTypeOnlyAliasDeclaration,
|
|
40640
40640
|
getMemberOverrideModifierStatus: getMemberOverrideModifierStatus,
|
|
40641
|
+
isTypeParameterPossiblyReferenced: isTypeParameterPossiblyReferenced,
|
|
40641
40642
|
};
|
|
40642
40643
|
function runWithInferenceBlockedFromSourceNode(node, fn) {
|
|
40643
40644
|
var containingCall = ts.findAncestor(node, ts.isCallLikeExpression);
|
|
@@ -41568,10 +41569,10 @@ var ts;
|
|
|
41568
41569
|
return (ts.isAssertionExpression(location) && ts.isConstTypeReference(location.type))
|
|
41569
41570
|
|| (ts.isJSDocTypeTag(location) && ts.isConstTypeReference(location.typeExpression));
|
|
41570
41571
|
}
|
|
41571
|
-
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
41572
|
+
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) {
|
|
41572
41573
|
if (excludeGlobals === void 0) { excludeGlobals = false; }
|
|
41573
|
-
if (
|
|
41574
|
-
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
41574
|
+
if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; }
|
|
41575
|
+
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol);
|
|
41575
41576
|
}
|
|
41576
41577
|
function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {
|
|
41577
41578
|
var _a, _b, _c;
|
|
@@ -41682,9 +41683,7 @@ var ts;
|
|
|
41682
41683
|
break;
|
|
41683
41684
|
}
|
|
41684
41685
|
if (lastLocation && ts.isStatic(lastLocation)) {
|
|
41685
|
-
|
|
41686
|
-
error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
|
|
41687
|
-
}
|
|
41686
|
+
error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
|
|
41688
41687
|
return undefined;
|
|
41689
41688
|
}
|
|
41690
41689
|
break loop;
|
|
@@ -41712,9 +41711,7 @@ var ts;
|
|
|
41712
41711
|
grandparent = location.parent.parent;
|
|
41713
41712
|
if (ts.isClassLike(grandparent) || grandparent.kind === 261) {
|
|
41714
41713
|
if (result = lookup(getSymbolOfNode(grandparent).members, name, meaning & 788968)) {
|
|
41715
|
-
|
|
41716
|
-
error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
|
|
41717
|
-
}
|
|
41714
|
+
error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
|
|
41718
41715
|
return undefined;
|
|
41719
41716
|
}
|
|
41720
41717
|
}
|
|
@@ -41874,7 +41871,7 @@ var ts;
|
|
|
41874
41871
|
}
|
|
41875
41872
|
return undefined;
|
|
41876
41873
|
}
|
|
41877
|
-
else if (
|
|
41874
|
+
else if (checkAndReportErrorForInvalidInitializer()) {
|
|
41878
41875
|
return undefined;
|
|
41879
41876
|
}
|
|
41880
41877
|
if (nameNotFoundMessage) {
|
|
@@ -53853,6 +53850,24 @@ var ts;
|
|
|
53853
53850
|
return !tp.isThisType && ts.isPartOfTypeNode(node) && maybeTypeParameterReference(node) &&
|
|
53854
53851
|
getTypeFromTypeNodeWorker(node) === tp;
|
|
53855
53852
|
case 183:
|
|
53853
|
+
var entityName = node.exprName;
|
|
53854
|
+
var firstIdentifier = ts.getFirstIdentifier(entityName);
|
|
53855
|
+
var firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
53856
|
+
var tpDeclaration = tp.symbol.declarations[0];
|
|
53857
|
+
var tpScope_1;
|
|
53858
|
+
if (tpDeclaration.kind === 165) {
|
|
53859
|
+
tpScope_1 = tpDeclaration.parent;
|
|
53860
|
+
}
|
|
53861
|
+
else if (tp.isThisType) {
|
|
53862
|
+
tpScope_1 = tpDeclaration;
|
|
53863
|
+
}
|
|
53864
|
+
else {
|
|
53865
|
+
return true;
|
|
53866
|
+
}
|
|
53867
|
+
if (firstIdentifierSymbol.declarations) {
|
|
53868
|
+
return ts.some(firstIdentifierSymbol.declarations, function (idDecl) { return ts.isNodeDescendantOf(idDecl, tpScope_1); }) ||
|
|
53869
|
+
ts.some(node.typeArguments, containsReference);
|
|
53870
|
+
}
|
|
53856
53871
|
return true;
|
|
53857
53872
|
case 171:
|
|
53858
53873
|
case 170:
|
|
@@ -60984,10 +60999,11 @@ var ts;
|
|
|
60984
60999
|
if (!(links.flags & 268435456)) {
|
|
60985
61000
|
links.flags |= 268435456;
|
|
60986
61001
|
var parentType = getTypeForBindingElementParent(parent, 0);
|
|
61002
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
60987
61003
|
links.flags &= ~268435456;
|
|
60988
|
-
if (
|
|
61004
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 && !(parent.kind === 166 && isSymbolAssigned(symbol))) {
|
|
60989
61005
|
var pattern = declaration.parent;
|
|
60990
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
61006
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, undefined, location.flowNode);
|
|
60991
61007
|
if (narrowedType.flags & 131072) {
|
|
60992
61008
|
return neverType;
|
|
60993
61009
|
}
|
|
@@ -67873,7 +67889,8 @@ var ts;
|
|
|
67873
67889
|
if (inferenceContext && inferenceContext.intraExpressionInferenceSites) {
|
|
67874
67890
|
inferenceContext.intraExpressionInferenceSites = undefined;
|
|
67875
67891
|
}
|
|
67876
|
-
var result = maybeTypeOfKind(type, 2944) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, undefined))
|
|
67892
|
+
var result = maybeTypeOfKind(type, 2944) && (isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, undefined)) ||
|
|
67893
|
+
isLiteralOfContextualType(type, contextualType)) ?
|
|
67877
67894
|
getRegularTypeOfLiteralType(type) : type;
|
|
67878
67895
|
return result;
|
|
67879
67896
|
}
|
|
@@ -74383,7 +74400,7 @@ var ts;
|
|
|
74383
74400
|
}
|
|
74384
74401
|
var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);
|
|
74385
74402
|
if (node) {
|
|
74386
|
-
var symbol =
|
|
74403
|
+
var symbol = getReferencedValueSymbol(node);
|
|
74387
74404
|
if (isNonLocalAlias(symbol, 111551) && !getTypeOnlyAliasDeclaration(symbol)) {
|
|
74388
74405
|
return getDeclarationOfAliasSymbol(symbol);
|
|
74389
74406
|
}
|
|
@@ -74704,13 +74721,6 @@ var ts;
|
|
|
74704
74721
|
}
|
|
74705
74722
|
return resolveName(location, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true);
|
|
74706
74723
|
}
|
|
74707
|
-
function getReferencedValueOrAliasSymbol(reference) {
|
|
74708
|
-
var resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
|
|
74709
|
-
if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
|
|
74710
|
-
return resolvedSymbol;
|
|
74711
|
-
}
|
|
74712
|
-
return resolveName(reference, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true, undefined, undefined);
|
|
74713
|
-
}
|
|
74714
74724
|
function getReferencedValueDeclaration(referenceIn) {
|
|
74715
74725
|
if (!ts.isGeneratedIdentifier(referenceIn)) {
|
|
74716
74726
|
var reference = ts.getParseTreeNode(referenceIn, ts.isIdentifier);
|
|
@@ -80009,11 +80019,9 @@ var ts;
|
|
|
80009
80019
|
return ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined;
|
|
80010
80020
|
}
|
|
80011
80021
|
function shouldEmitAliasDeclaration(node) {
|
|
80012
|
-
return
|
|
80013
|
-
?
|
|
80014
|
-
:
|
|
80015
|
-
? resolver.isValueAliasDeclaration(node)
|
|
80016
|
-
: resolver.isReferencedAliasDeclaration(node);
|
|
80022
|
+
return compilerOptions.preserveValueImports
|
|
80023
|
+
? resolver.isValueAliasDeclaration(node)
|
|
80024
|
+
: resolver.isReferencedAliasDeclaration(node);
|
|
80017
80025
|
}
|
|
80018
80026
|
}
|
|
80019
80027
|
ts.transformTypeScript = transformTypeScript;
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220919");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -49542,6 +49542,7 @@ var ts;
|
|
|
49542
49542
|
isPropertyAccessible: isPropertyAccessible,
|
|
49543
49543
|
getTypeOnlyAliasDeclaration: getTypeOnlyAliasDeclaration,
|
|
49544
49544
|
getMemberOverrideModifierStatus: getMemberOverrideModifierStatus,
|
|
49545
|
+
isTypeParameterPossiblyReferenced: isTypeParameterPossiblyReferenced,
|
|
49545
49546
|
};
|
|
49546
49547
|
function runWithInferenceBlockedFromSourceNode(node, fn) {
|
|
49547
49548
|
var containingCall = ts.findAncestor(node, ts.isCallLikeExpression);
|
|
@@ -50570,13 +50571,12 @@ var ts;
|
|
|
50570
50571
|
* the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with
|
|
50571
50572
|
* the given name can be found.
|
|
50572
50573
|
*
|
|
50573
|
-
* @param nameNotFoundMessage If defined, we will report errors found during resolve.
|
|
50574
50574
|
* @param isUse If true, this will count towards --noUnusedLocals / --noUnusedParameters.
|
|
50575
50575
|
*/
|
|
50576
|
-
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
50576
|
+
function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) {
|
|
50577
50577
|
if (excludeGlobals === void 0) { excludeGlobals = false; }
|
|
50578
|
-
if (
|
|
50579
|
-
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals,
|
|
50578
|
+
if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; }
|
|
50579
|
+
return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol);
|
|
50580
50580
|
}
|
|
50581
50581
|
function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {
|
|
50582
50582
|
var _a, _b, _c;
|
|
@@ -50734,9 +50734,7 @@ var ts;
|
|
|
50734
50734
|
// TypeScript 1.0 spec (April 2014): 3.4.1
|
|
50735
50735
|
// The scope of a type parameter extends over the entire declaration with which the type
|
|
50736
50736
|
// parameter list is associated, with the exception of static member declarations in classes.
|
|
50737
|
-
|
|
50738
|
-
error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
|
|
50739
|
-
}
|
|
50737
|
+
error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
|
|
50740
50738
|
return undefined;
|
|
50741
50739
|
}
|
|
50742
50740
|
break loop;
|
|
@@ -50774,9 +50772,7 @@ var ts;
|
|
|
50774
50772
|
if (ts.isClassLike(grandparent) || grandparent.kind === 261 /* SyntaxKind.InterfaceDeclaration */) {
|
|
50775
50773
|
// A reference to this grandparent's type parameters would be an error
|
|
50776
50774
|
if (result = lookup(getSymbolOfNode(grandparent).members, name, meaning & 788968 /* SymbolFlags.Type */)) {
|
|
50777
|
-
|
|
50778
|
-
error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
|
|
50779
|
-
}
|
|
50775
|
+
error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
|
|
50780
50776
|
return undefined;
|
|
50781
50777
|
}
|
|
50782
50778
|
}
|
|
@@ -50972,7 +50968,7 @@ var ts;
|
|
|
50972
50968
|
}
|
|
50973
50969
|
return undefined;
|
|
50974
50970
|
}
|
|
50975
|
-
else if (
|
|
50971
|
+
else if (checkAndReportErrorForInvalidInitializer()) {
|
|
50976
50972
|
return undefined;
|
|
50977
50973
|
}
|
|
50978
50974
|
// Perform extra checks only if error reporting was requested
|
|
@@ -64604,9 +64600,10 @@ var ts;
|
|
|
64604
64600
|
node.parent.kind === 202 /* SyntaxKind.ImportType */ && node.parent.typeArguments && node === node.parent.qualifier);
|
|
64605
64601
|
}
|
|
64606
64602
|
function isTypeParameterPossiblyReferenced(tp, node) {
|
|
64607
|
-
// If the type parameter doesn't have exactly one declaration, if there are
|
|
64603
|
+
// If the type parameter doesn't have exactly one declaration, if there are intervening statement blocks
|
|
64608
64604
|
// between the node and the type parameter declaration, if the node contains actual references to the
|
|
64609
|
-
// type parameter, or if the node contains type queries
|
|
64605
|
+
// type parameter, or if the node contains type queries that we can't prove couldn't contain references to the type parameter,
|
|
64606
|
+
// we consider the type parameter possibly referenced.
|
|
64610
64607
|
if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) {
|
|
64611
64608
|
var container = tp.symbol.declarations[0].parent;
|
|
64612
64609
|
for (var n = node; n !== container; n = n.parent) {
|
|
@@ -64625,6 +64622,27 @@ var ts;
|
|
|
64625
64622
|
return !tp.isThisType && ts.isPartOfTypeNode(node) && maybeTypeParameterReference(node) &&
|
|
64626
64623
|
getTypeFromTypeNodeWorker(node) === tp; // use worker because we're looking for === equality
|
|
64627
64624
|
case 183 /* SyntaxKind.TypeQuery */:
|
|
64625
|
+
var entityName = node.exprName;
|
|
64626
|
+
var firstIdentifier = ts.getFirstIdentifier(entityName);
|
|
64627
|
+
var firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
64628
|
+
var tpDeclaration = tp.symbol.declarations[0]; // There is exactly one declaration, otherwise `containsReference` is not called
|
|
64629
|
+
var tpScope_1;
|
|
64630
|
+
if (tpDeclaration.kind === 165 /* SyntaxKind.TypeParameter */) { // Type parameter is a regular type parameter, e.g. foo<T>
|
|
64631
|
+
tpScope_1 = tpDeclaration.parent;
|
|
64632
|
+
}
|
|
64633
|
+
else if (tp.isThisType) {
|
|
64634
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
64635
|
+
tpScope_1 = tpDeclaration;
|
|
64636
|
+
}
|
|
64637
|
+
else {
|
|
64638
|
+
// Type parameter's declaration was unrecognized.
|
|
64639
|
+
// This could happen if the type parameter comes from e.g. a JSDoc annotation, so we default to returning true.
|
|
64640
|
+
return true;
|
|
64641
|
+
}
|
|
64642
|
+
if (firstIdentifierSymbol.declarations) {
|
|
64643
|
+
return ts.some(firstIdentifierSymbol.declarations, function (idDecl) { return ts.isNodeDescendantOf(idDecl, tpScope_1); }) ||
|
|
64644
|
+
ts.some(node.typeArguments, containsReference);
|
|
64645
|
+
}
|
|
64628
64646
|
return true;
|
|
64629
64647
|
case 171 /* SyntaxKind.MethodDeclaration */:
|
|
64630
64648
|
case 170 /* SyntaxKind.MethodSignature */:
|
|
@@ -72878,10 +72896,11 @@ var ts;
|
|
|
72878
72896
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72879
72897
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72880
72898
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72899
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72881
72900
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72882
|
-
if (
|
|
72901
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72883
72902
|
var pattern = declaration.parent;
|
|
72884
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72903
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72885
72904
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72886
72905
|
return neverType;
|
|
72887
72906
|
}
|
|
@@ -80886,7 +80905,8 @@ var ts;
|
|
|
80886
80905
|
// We strip literal freshness when an appropriate contextual type is present such that contextually typed
|
|
80887
80906
|
// literals always preserve their literal types (otherwise they might widen during type inference). An alternative
|
|
80888
80907
|
// here would be to not mark contextually typed literals as fresh in the first place.
|
|
80889
|
-
var result = maybeTypeOfKind(type, 2944 /* TypeFlags.Literal */) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, /*contextFlags*/ undefined))
|
|
80908
|
+
var result = maybeTypeOfKind(type, 2944 /* TypeFlags.Literal */) && (isLiteralOfContextualType(type, instantiateContextualType(contextualType, node, /*contextFlags*/ undefined)) ||
|
|
80909
|
+
isLiteralOfContextualType(type, contextualType)) ?
|
|
80890
80910
|
getRegularTypeOfLiteralType(type) : type;
|
|
80891
80911
|
return result;
|
|
80892
80912
|
}
|
|
@@ -88482,7 +88502,7 @@ var ts;
|
|
|
88482
88502
|
}
|
|
88483
88503
|
var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);
|
|
88484
88504
|
if (node) {
|
|
88485
|
-
var symbol =
|
|
88505
|
+
var symbol = getReferencedValueSymbol(node);
|
|
88486
88506
|
// We should only get the declaration of an alias if there isn't a local value
|
|
88487
88507
|
// declaration for the symbol
|
|
88488
88508
|
if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* SymbolFlags.Value */) && !getTypeOnlyAliasDeclaration(symbol)) {
|
|
@@ -88849,25 +88869,6 @@ var ts;
|
|
|
88849
88869
|
}
|
|
88850
88870
|
return resolveName(location, reference.escapedText, 111551 /* SymbolFlags.Value */ | 1048576 /* SymbolFlags.ExportValue */ | 2097152 /* SymbolFlags.Alias */, /*nodeNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);
|
|
88851
88871
|
}
|
|
88852
|
-
/**
|
|
88853
|
-
* Get either a value-meaning symbol or an alias symbol.
|
|
88854
|
-
* Unlike `getReferencedValueSymbol`, if the cached resolved symbol is the unknown symbol,
|
|
88855
|
-
* we call `resolveName` to find a symbol.
|
|
88856
|
-
* This is because when caching the resolved symbol, we only consider value symbols, but here
|
|
88857
|
-
* we want to also get an alias symbol if one exists.
|
|
88858
|
-
*/
|
|
88859
|
-
function getReferencedValueOrAliasSymbol(reference) {
|
|
88860
|
-
var resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
|
|
88861
|
-
if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
|
|
88862
|
-
return resolvedSymbol;
|
|
88863
|
-
}
|
|
88864
|
-
return resolveName(reference, reference.escapedText, 111551 /* SymbolFlags.Value */ | 1048576 /* SymbolFlags.ExportValue */ | 2097152 /* SymbolFlags.Alias */,
|
|
88865
|
-
/*nodeNotFoundMessage*/ undefined,
|
|
88866
|
-
/*nameArg*/ undefined,
|
|
88867
|
-
/*isUse*/ true,
|
|
88868
|
-
/*excludeGlobals*/ undefined,
|
|
88869
|
-
/*getSpellingSuggestions*/ undefined);
|
|
88870
|
-
}
|
|
88871
88872
|
function getReferencedValueDeclaration(referenceIn) {
|
|
88872
88873
|
if (!ts.isGeneratedIdentifier(referenceIn)) {
|
|
88873
88874
|
var reference = ts.getParseTreeNode(referenceIn, ts.isIdentifier);
|
|
@@ -95317,11 +95318,9 @@ var ts;
|
|
|
95317
95318
|
return ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined;
|
|
95318
95319
|
}
|
|
95319
95320
|
function shouldEmitAliasDeclaration(node) {
|
|
95320
|
-
return
|
|
95321
|
-
?
|
|
95322
|
-
:
|
|
95323
|
-
? resolver.isValueAliasDeclaration(node)
|
|
95324
|
-
: resolver.isReferencedAliasDeclaration(node);
|
|
95321
|
+
return compilerOptions.preserveValueImports
|
|
95322
|
+
? resolver.isValueAliasDeclaration(node)
|
|
95323
|
+
: resolver.isReferencedAliasDeclaration(node);
|
|
95325
95324
|
}
|
|
95326
95325
|
}
|
|
95327
95326
|
ts.transformTypeScript = transformTypeScript;
|