typescript 4.7.0-dev.20220326 → 4.7.0-dev.20220329

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.
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Tato syntaxe vyžaduje importovanou podpůrnou aplikaci, ale modul {0} se nenašel.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Tato syntaxe vyžaduje importovanou pomocnou rutinu s názvem {1}, která v {0} neexistuje. Zvažte možnost upgradovat verzi {0}.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Tato syntaxe vyžaduje importovanou pomocnou rutinu s názvem {1} a parametry {2}, která není kompatibilní s tou v {0}. Zvažte upgrade verze {0}.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Tento parametr typu pravděpodobně potřebuje omezení „extends object“.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Výrazy await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarace nejvyšší úrovně v souborech .d.ts musí začínat modifikátorem declare, nebo export.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Smyčky for await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Diese Syntax erfordert ein importiertes Hilfsprogramm, aber das Modul \"{0}\" wurde nicht gefunden.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Diese Syntax erfordert ein importiertes Hilfsprogramm namens \"{1}\", das in \"{0}\" nicht vorhanden ist. Erwägen Sie ein Upgrade Ihrer Version von \"{0}\".",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Diese Syntax erfordert ein importiertes Hilfsprogramm mit dem Namen \"{1}\" mit {2} Parametern, die nicht mit der in \"{0}\" kompatibel ist. Erwägen Sie ein Upgrade Ihrer Version von \"{0}\".",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Dieser Typparameter benötigt wahrscheinlich eine „extends object“-Einschränkung.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "„Await“-Ausdrücke der obersten Ebene sind nur zulässig, wenn die Option \"module\" auf \"es2022\", \"esnext\", \"system\" oder \"nodenext\" festgelegt ist und die Option \"target\" auf \"es2017\" oder höher festgelegt ist.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarationen der obersten Ebene in .d.ts-Dateien müssen entweder mit einem declare- oder einem export-Modifizierer beginnen.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "„For Await“-Schleifen der obersten Ebene sind nur zulässig, wenn die „module“-Option auf \"es2022\", \"esnext\", \"system\" oder \"nodenext\" festgelegt ist und die Option \"target\" auf \"es2017\" oder höher festgelegt ist.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere un asistente importado, pero no se puede encontrar el módulo \"{0}\".",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Esta sintaxis requiere una aplicación auxiliar importada denominada \"{1}\", que no existe en \"{0}\". Considere la posibilidad de actualizar la versión de \"{0}\".",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Esta sintaxis requiere un asistente importado denominado \"{1}\" con parámetros de {2}, que no es compatible con el de \"{0}\". Pruebe a actualizar la versión de \"{0}\".",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Puede que este parámetro de tipo necesite una restricción “extends object”.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Las expresiones \"await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Las declaraciones de nivel superior de los archivos .d.ts deben comenzar con un modificador \"declare\" o \"export\".",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Los bucles \"for await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Cette syntaxe nécessite une application d'assistance importée, mais le module '{0}' est introuvable.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Cette syntaxe nécessite une assistance importée nommée '{1}' mais qui n'existe pas dans '{0}'. Effectuez une mise à niveau de votre version de '{0}'.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Cette syntaxe nécessite un composant d'assistance importé nommé '{1}' avec {2} paramètres, ce qui n'est pas compatible avec celui qui se trouve dans '{0}'. Effectuez une mise à niveau de votre version de '{0}'.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Ce paramètre de type nécessite probablement une contrainte 'extends object'.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Les expressions « await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system » ou « nodenext », et que l’option « target » a la valeur « es2017 » ou une valeur supérieure.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Les déclarations de niveau supérieur dans les fichiers .d.ts doivent commencer par un modificateur 'declare' ou 'export'.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Les boucles « for await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system » ou « nodenext », et que l’option « target » est définie sur « es2017 » ou une version ultérieure.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Con questa sintassi è richiesto un helper importato, ma il modulo '{0}' non è stato trovato.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Con questa sintassi è richiesto un helper importato denominato '{1}', che non esiste in '{0}'. Provare ad aggiornare la versione di '{0}'.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Con questa sintassi è richiesto un helper importato denominato '{1}' con {2} parametri, che non è compatibile con quello presente in '{0}'. Provare ad aggiornare la versione di '{0}'.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Questo parametro di tipo richiede probabilmente un vincolo 'extends object'.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Le espressioni 'await' di primo livello sono consentite solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system' o 'nodenext' e l'opzione 'target' è impostata su 'es2017' o versione successiva.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Le dichiarazioni di primo livello nei file con estensione d.ts devono iniziare con un modificatore 'declare' o 'export'.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "I cicli 'for await' di primo livello sono consentiti solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system' o 'nodenext' e l'opzione 'target' è impostata su 'es2017' o versione successiva.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "この構文にはインポートされたヘルパーが必要ですが、モジュール '{0}' が見つかりません。",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "この構文には、'{1}' という名前のインポートされたヘルパーが必要ですが、'{0}' には存在しません。'{0}' のバージョンのアップグレードを検討してください。",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "この構文には、{2} パラメーターを持つ '{1}' という名前のインポートされたヘルパーが必要ですが、'{0}' にあるものと互換性がありません。'{0}' のバージョンをアップグレードすることをご検討ください。",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "この型パラメーターには、`extends object` 制約が必要な可能性があります。",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "トップレベルの 'await' 式は、'module' オプションが 'es2022'、'esnext'、'system'、または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts ファイルのトップレベルの宣言は、'declare' または 'export' 修飾子で始める必要があります。",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "トップレベルの 'for await' ループは、'module' オプションが 'es2022'、'esnext'、'system'、または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "이 구문에는 가져온 도우미가 필요하지만 '{0}' 모듈을 찾을 수 없습니다.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "이 구문에는 '{0}'에 없는 '{1}'(이)라는 가져온 도우미가 필요합니다. '{0}'의 버전을 업그레이드하는 것이 좋습니다.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "이 구문에는 {2} 매개 변수가 포함된 '{1}'(이)라는 가져온 도우미가 필요하지만, 이 도우미는 '{0}'에 있는 도우미와 호환되지 않습니다. '{0}' 버전을 업그레이드하는 것이 좋습니다.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "이 형식 매개 변수에는 `extends object` 제약 조건이 필요할 수 있습니다.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "최상위 'await' 식은 'module' 옵션이 'es2022', 'esnext', 'system' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 파일의 최상위 수준 선언은 'declare' 또는 'export' 한정자로 시작해야 합니다.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "최상위 'for await' 루프는 'module' 옵션이 'es2022', 'esnext', 'system' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Ta składnia wymaga zaimportowanego pomocnika, ale nie można znaleźć modułu „{0}”.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}”, który nie istnieje w elemencie „{0}”. Rozważ uaktualnienie wersji „{0}”.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}” z parametrami {2}, który nie jest zgodny z tym w elemencie „{0}”. Rozważ uaktualnienie wersji elementu „{0}”.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Ten parametr typu prawdopodobnie wymaga ograniczenia „extends object”.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Wyrażenia „await” najwyższego poziomu są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklaracje najwyższego poziomu w plikach .d.ts muszą rozpoczynać się od modyfikatora „declare” lub „export”.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Pętle najwyższego poziomu „for await” są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Essa sintaxe requer um auxiliar importado, mas o módulo '{0}' não pode ser encontrado.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Esta sintaxe requer um auxiliar importado chamado '{1}' que não existe em '{0}'. Considere atualizar sua versão do '{0}'.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Esta sintaxe exige um auxiliar importado nomeado como '{1}' com parâmetros {2}, o que não é compatível com o que está em '{0}'. Considere atualizar sua versão do '{0}'.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Esse parâmetro de tipo provavelmente precisa de uma restrição `extends object.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Expressões de nível superior 'await' são permitidas apenas quando a opção 'module' está definida como 'es2022', 'esnext', 'system' ou 'nodenext' e a opção 'target' está definida como 'es2017 ou superior.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "As declarações de nível superior em arquivos .d.ts devem começar com um modificador 'declare' ou 'export'.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Loops de nível superior 'for await' são permitidos apenas quando a opção 'module' está definida como 'es2022', 'esnext', 'system' ou 'nodenext' e a opção 'target' está definida como 'es2017' ou superior.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Для этого синтаксиса требуется импортированный вспомогательный объект, но найти модуль \"{0}\" не удается.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Для этого синтаксиса требуется импортированный вспомогательный объект с именем \"{1}\", который не существует в \"{0}\". Рекомендуется обновить версию \"{0}\".",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Для этого синтаксиса требуется импортированный вспомогательный объект с именем \"{1}\" и параметрами ({2}), который не совместим с объектом в \"{0}\". Попробуйте обновить версию \"{0}\".",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Возможно, для этого параметра типа требуется ограничение \"extends object\".",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Выражения \"await\" верхнего уровня допускаются, только если параметру \"module\" присвоено значение \"es2022\", \"esnext\", \"system\" или \"nodenext\", а параметру \"target\" присвоено значение \"es2017\" или выше.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Объявления верхнего уровня в файлах .d.ts должны начинаться с модификатора \"declare\" или \"export\".",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Циклы \"for await\" верхнего уровня допускаются, только если параметру \"module\" присвоено значение \"es2022\", \"esnext\", \"system\" или \"nodenext\", а параметру \"target\" присвоено значение \"es2017\" или выше.",
@@ -1481,6 +1481,7 @@
1481
1481
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Bu söz dizimi, içeri aktarılan bir yardımcı gerektiriyor ancak '{0}' modülü bulunamıyor.",
1482
1482
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Bu söz dizimi, '{0}' içinde bulunmayan '{1}' adlı içeri aktarılmış bir yardımcı gerektirir. '{0}' sürümünüzü yükseltmeyi deneyin.",
1483
1483
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Bu söz dizimi, '{0}' içindeki yardımcı ile uyumlu olmayan, {2} parametreye sahip '{1}' adlı içeri aktarılan yardımcıyı gerektiriyor. '{0}' sürümünüzü yükseltmeyi düşünün.",
1484
+ "This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Bu tür parametresi için bir `nesneyi genişletir` kısıtlaması gerekiyor olabilir.",
1484
1485
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "Üst düzey 'await' ifadelerine yalnızca 'module' seçeneği 'es2022', 'esnext', 'system' veya 'nodenext' olarak ayarlandığında ve 'target' seçeneği 'es2017' veya üzeri olarak ayarlandığında izin verilir.",
1485
1486
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts dosyalarındaki üst düzey bildirimler bir 'declare' veya 'export' değiştiricisi ile başlamalıdır.",
1486
1487
  "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "Üst düzey 'for await' döngülerine yalnızca 'module' seçeneği 'es2022', 'esnext', 'system' veya 'nodenext' olarak ayarlandığında ve 'target' seçeneği 'es2017' veya üzeri olarak ayarlandığında izin verilir.",
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.7";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220326";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220329";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -10092,7 +10092,9 @@ var ts;
10092
10092
  || kind === 174
10093
10093
  || kind === 166
10094
10094
  || kind === 168
10095
- || kind === 176;
10095
+ || kind === 176
10096
+ || kind === 172
10097
+ || kind === 173;
10096
10098
  }
10097
10099
  ts.isTypeElement = isTypeElement;
10098
10100
  function isClassOrTypeElement(node) {
@@ -40140,6 +40142,10 @@ var ts;
40140
40142
  }
40141
40143
  }
40142
40144
  }
40145
+ function isConstAssertion(location) {
40146
+ return (ts.isAssertionExpression(location) && ts.isConstTypeReference(location.type))
40147
+ || (ts.isJSDocTypeTag(location) && ts.isConstTypeReference(location.typeExpression));
40148
+ }
40143
40149
  function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) {
40144
40150
  if (excludeGlobals === void 0) { excludeGlobals = false; }
40145
40151
  if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; }
@@ -40158,6 +40164,9 @@ var ts;
40158
40164
  var grandparent;
40159
40165
  var isInExternalModule = false;
40160
40166
  loop: while (location) {
40167
+ if (name === "const" && isConstAssertion(location)) {
40168
+ return undefined;
40169
+ }
40161
40170
  if (location.locals && !isGlobalSourceFile(location)) {
40162
40171
  if (result = lookup(location.locals, name, meaning)) {
40163
40172
  var useResult = true;
@@ -45282,6 +45291,8 @@ var ts;
45282
45291
  return !!target.resolvedTypeArguments;
45283
45292
  case 7:
45284
45293
  return !!target.baseTypesResolved;
45294
+ case 8:
45295
+ return !!getSymbolLinks(target).writeType;
45285
45296
  }
45286
45297
  return ts.Debug.assertNever(propertyName);
45287
45298
  }
@@ -46069,6 +46080,9 @@ var ts;
46069
46080
  }
46070
46081
  return getWidenedType(getWidenedLiteralType(checkExpression(declaration.statements[0].expression)));
46071
46082
  }
46083
+ if (ts.isAccessor(declaration)) {
46084
+ return getTypeOfAccessors(symbol);
46085
+ }
46072
46086
  if (!pushTypeResolution(symbol, 0)) {
46073
46087
  if (symbol.flags & 512 && !(symbol.flags & 67108864)) {
46074
46088
  return getTypeOfFuncClassEnumModule(symbol);
@@ -46127,9 +46141,6 @@ var ts;
46127
46141
  else if (ts.isEnumMember(declaration)) {
46128
46142
  type = getTypeOfEnumMember(symbol);
46129
46143
  }
46130
- else if (ts.isAccessor(declaration)) {
46131
- type = resolveTypeOfAccessors(symbol) || ts.Debug.fail("Non-write accessor resolution must always produce a type");
46132
- }
46133
46144
  else {
46134
46145
  return ts.Debug.fail("Unhandled declaration kind! " + ts.Debug.formatSyntaxKind(declaration.kind) + " for " + ts.Debug.formatSymbol(symbol));
46135
46146
  }
@@ -46167,81 +46178,58 @@ var ts;
46167
46178
  }
46168
46179
  function getTypeOfAccessors(symbol) {
46169
46180
  var links = getSymbolLinks(symbol);
46170
- return links.type || (links.type = getTypeOfAccessorsWorker(symbol) || ts.Debug.fail("Read type of accessor must always produce a type"));
46171
- }
46172
- function getTypeOfSetAccessor(symbol) {
46173
- var links = getSymbolLinks(symbol);
46174
- return links.writeType || (links.writeType = getTypeOfAccessorsWorker(symbol, true));
46175
- }
46176
- function getTypeOfAccessorsWorker(symbol, writing) {
46177
- if (writing === void 0) { writing = false; }
46178
- if (!pushTypeResolution(symbol, 0)) {
46179
- return errorType;
46180
- }
46181
- var type = resolveTypeOfAccessors(symbol, writing);
46182
- if (!popTypeResolution()) {
46181
+ if (!links.type) {
46182
+ if (!pushTypeResolution(symbol, 0)) {
46183
+ return errorType;
46184
+ }
46183
46185
  var getter = ts.getDeclarationOfKind(symbol, 172);
46184
- if (getter) {
46185
- if (ts.getEffectiveTypeAnnotationNode(getter)) {
46186
- error(getter.name, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
46186
+ var setter = ts.getDeclarationOfKind(symbol, 173);
46187
+ var type = getter && ts.isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) ||
46188
+ getAnnotatedAccessorType(getter) ||
46189
+ getAnnotatedAccessorType(setter) ||
46190
+ getter && getter.body && getReturnTypeFromBody(getter);
46191
+ if (!type) {
46192
+ if (setter && !isPrivateWithinAmbient(setter)) {
46193
+ errorOrSuggestion(noImplicitAny, setter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol));
46194
+ }
46195
+ else if (getter && !isPrivateWithinAmbient(getter)) {
46196
+ errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));
46197
+ }
46198
+ type = anyType;
46199
+ }
46200
+ if (!popTypeResolution()) {
46201
+ if (getAnnotatedAccessorTypeNode(getter)) {
46202
+ error(getter, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
46203
+ }
46204
+ else if (getAnnotatedAccessorTypeNode(setter)) {
46205
+ error(setter, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
46187
46206
  }
46188
- else if (noImplicitAny) {
46207
+ else if (getter && noImplicitAny) {
46189
46208
  error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));
46190
46209
  }
46210
+ type = anyType;
46191
46211
  }
46192
- type = anyType;
46212
+ links.type = type;
46193
46213
  }
46194
- return type;
46214
+ return links.type;
46195
46215
  }
46196
- function resolveTypeOfAccessors(symbol, writing) {
46197
- if (writing === void 0) { writing = false; }
46198
- var getter = ts.getDeclarationOfKind(symbol, 172);
46199
- var setter = ts.getDeclarationOfKind(symbol, 173);
46200
- if (writing) {
46201
- var setterType_1 = getAnnotatedAccessorType(setter);
46202
- if (setterType_1) {
46203
- return instantiateTypeIfNeeded(setterType_1, symbol);
46204
- }
46205
- }
46206
- if (getter && ts.isInJSFile(getter)) {
46207
- var jsDocType = getTypeForDeclarationFromJSDocComment(getter);
46208
- if (jsDocType) {
46209
- return instantiateTypeIfNeeded(jsDocType, symbol);
46210
- }
46211
- }
46212
- var getterType = getAnnotatedAccessorType(getter);
46213
- if (getterType) {
46214
- return instantiateTypeIfNeeded(getterType, symbol);
46215
- }
46216
- var setterType = getAnnotatedAccessorType(setter);
46217
- if (setterType) {
46218
- return setterType;
46219
- }
46220
- if (getter && getter.body) {
46221
- var returnTypeFromBody = getReturnTypeFromBody(getter);
46222
- return instantiateTypeIfNeeded(returnTypeFromBody, symbol);
46223
- }
46224
- if (setter) {
46225
- if (!isPrivateWithinAmbient(setter)) {
46226
- errorOrSuggestion(noImplicitAny, setter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol));
46227
- }
46228
- return anyType;
46229
- }
46230
- else if (getter) {
46231
- ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function");
46232
- if (!isPrivateWithinAmbient(getter)) {
46233
- errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));
46216
+ function getWriteTypeOfAccessors(symbol) {
46217
+ var links = getSymbolLinks(symbol);
46218
+ if (!links.writeType) {
46219
+ if (!pushTypeResolution(symbol, 8)) {
46220
+ return errorType;
46234
46221
  }
46235
- return anyType;
46236
- }
46237
- return undefined;
46238
- function instantiateTypeIfNeeded(type, symbol) {
46239
- if (ts.getCheckFlags(symbol) & 1) {
46240
- var links = getSymbolLinks(symbol);
46241
- return instantiateType(type, links.mapper);
46222
+ var setter = ts.getDeclarationOfKind(symbol, 173);
46223
+ var writeType = getAnnotatedAccessorType(setter);
46224
+ if (!popTypeResolution()) {
46225
+ if (getAnnotatedAccessorTypeNode(setter)) {
46226
+ error(setter, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));
46227
+ }
46228
+ writeType = anyType;
46242
46229
  }
46243
- return type;
46230
+ links.writeType = writeType || getTypeOfAccessors(symbol);
46244
46231
  }
46232
+ return links.writeType;
46245
46233
  }
46246
46234
  function getBaseTypeVariableOfClass(symbol) {
46247
46235
  var baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol));
@@ -46317,17 +46305,11 @@ var ts;
46317
46305
  }
46318
46306
  function getTypeOfInstantiatedSymbol(symbol) {
46319
46307
  var links = getSymbolLinks(symbol);
46320
- if (!links.type) {
46321
- if (!pushTypeResolution(symbol, 0)) {
46322
- return links.type = errorType;
46323
- }
46324
- var type = instantiateType(getTypeOfSymbol(links.target), links.mapper);
46325
- if (!popTypeResolution()) {
46326
- type = reportCircularityError(symbol);
46327
- }
46328
- links.type = type;
46329
- }
46330
- return links.type;
46308
+ return links.type || (links.type = instantiateType(getTypeOfSymbol(links.target), links.mapper));
46309
+ }
46310
+ function getWriteTypeOfInstantiatedSymbol(symbol) {
46311
+ var links = getSymbolLinks(symbol);
46312
+ return links.writeType || (links.writeType = instantiateType(getWriteTypeOfSymbol(links.target), links.mapper));
46331
46313
  }
46332
46314
  function reportCircularityError(symbol) {
46333
46315
  var declaration = symbol.valueDeclaration;
@@ -46360,26 +46342,17 @@ var ts;
46360
46342
  }
46361
46343
  function getWriteTypeOfSymbol(symbol) {
46362
46344
  var checkFlags = ts.getCheckFlags(symbol);
46363
- if (checkFlags & 65536) {
46364
- var writeType = getWriteTypeOfSymbolWithDeferredType(symbol);
46365
- if (writeType) {
46366
- return writeType;
46367
- }
46345
+ if (symbol.flags & 4) {
46346
+ return checkFlags & 2 ?
46347
+ checkFlags & 65536 ?
46348
+ getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) :
46349
+ symbol.writeType || symbol.type :
46350
+ getTypeOfSymbol(symbol);
46368
46351
  }
46369
- if (symbol.flags & 33554432) {
46370
- var writeType = symbol.writeType;
46371
- if (writeType) {
46372
- return writeType;
46373
- }
46374
- }
46375
- return getSetAccessorTypeOfSymbol(symbol);
46376
- }
46377
- function getSetAccessorTypeOfSymbol(symbol) {
46378
46352
  if (symbol.flags & 98304) {
46379
- var type = getTypeOfSetAccessor(symbol);
46380
- if (type) {
46381
- return type;
46382
- }
46353
+ return checkFlags & 1 ?
46354
+ getWriteTypeOfInstantiatedSymbol(symbol) :
46355
+ getWriteTypeOfAccessors(symbol);
46383
46356
  }
46384
46357
  return getTypeOfSymbol(symbol);
46385
46358
  }
@@ -59024,7 +58997,7 @@ var ts;
59024
58997
  }
59025
58998
  }
59026
58999
  if (ts.isDeclarationName(location) && ts.isSetAccessor(location.parent) && getAnnotatedAccessorTypeNode(location.parent)) {
59027
- return resolveTypeOfAccessors(location.parent.symbol, true);
59000
+ return getWriteTypeOfAccessors(location.parent.symbol);
59028
59001
  }
59029
59002
  return getNonMissingTypeOfSymbol(symbol);
59030
59003
  }
@@ -68590,6 +68563,8 @@ var ts;
68590
68563
  (condExpr.operatorToken.kind === 56 || condExpr.operatorToken.kind === 55)
68591
68564
  ? condExpr.right
68592
68565
  : condExpr;
68566
+ if (ts.isModuleExportsAccessExpression(location))
68567
+ return;
68593
68568
  var type = checkTruthinessExpression(location);
68594
68569
  var isPropertyExpressionCast = ts.isPropertyAccessExpression(location) && isTypeAssertion(location.expression);
68595
68570
  if (getFalsyFlags(type) || isPropertyExpressionCast)