@typescript-deploys/pr-build 4.5.0-pr-45742-5 → 4.5.0-pr-45884-2

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.
Files changed (32) hide show
  1. package/lib/cs/diagnosticMessages.generated.json +6 -0
  2. package/lib/de/diagnosticMessages.generated.json +6 -0
  3. package/lib/es/diagnosticMessages.generated.json +6 -0
  4. package/lib/fr/diagnosticMessages.generated.json +6 -0
  5. package/lib/it/diagnosticMessages.generated.json +6 -0
  6. package/lib/ja/diagnosticMessages.generated.json +6 -0
  7. package/lib/ko/diagnosticMessages.generated.json +6 -0
  8. package/lib/lib.es2015.iterable.d.ts +2 -10
  9. package/lib/lib.es2015.promise.d.ts +2 -74
  10. package/lib/lib.es2018.intl.d.ts +23 -11
  11. package/lib/lib.es2020.intl.d.ts +173 -114
  12. package/lib/lib.es2020.promise.d.ts +2 -3
  13. package/lib/lib.es2021.intl.d.ts +35 -0
  14. package/lib/lib.es2021.promise.d.ts +8 -1
  15. package/lib/lib.es5.d.ts +43 -30
  16. package/lib/lib.esnext.intl.d.ts +1 -10
  17. package/lib/pl/diagnosticMessages.generated.json +6 -0
  18. package/lib/pt-br/diagnosticMessages.generated.json +6 -0
  19. package/lib/ru/diagnosticMessages.generated.json +6 -0
  20. package/lib/tr/diagnosticMessages.generated.json +6 -0
  21. package/lib/tsc.js +1282 -434
  22. package/lib/tsserver.js +1517 -520
  23. package/lib/tsserverlibrary.d.ts +92 -18
  24. package/lib/tsserverlibrary.js +1517 -520
  25. package/lib/typescript.d.ts +90 -16
  26. package/lib/typescript.js +1512 -514
  27. package/lib/typescriptServices.d.ts +90 -16
  28. package/lib/typescriptServices.js +1512 -514
  29. package/lib/typingsInstaller.js +1457 -484
  30. package/lib/zh-cn/diagnosticMessages.generated.json +6 -0
  31. package/lib/zh-tw/diagnosticMessages.generated.json +6 -0
  32. package/package.json +1 -1
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Možnost ‚--incremental‘ se dá zadat jen pomocí tsconfig, při generování do jednoho souboru nebo když se zadá možnost ‚--tsBuildInfoFile‘.",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Možnost isolatedModules jde použít jenom v případě, že je poskytnutá možnost --module nebo že možnost target je ES2015 nebo vyšší verze.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Když je povolená možnost isolatedModules, možnost preserveConstEnums se nedá zakázat.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Možnost preserveValueImports se dá použít jenom v případě, že je modul nastavený na hodnotu es2015 nebo novější.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Možnost project se na příkazovém řádku nedá kombinovat se zdrojovým souborem.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Možnost --resolveJsonModule se dá zadat jen v případě, že generování kódu modulu je commonjs, amd, es2015 nebo esNext.",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Možnost --resolveJsonModule se nedá zadat bez strategie překladu modulu node.",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "Před všechny nesprávné deklarace vlastností přidejte declare.",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "Přidat příponu _ ke všem nepoužívaným deklaracím tam, kde je to možné",
1035
1036
  "Prefix_with_declare_95094": "Přidat předponu declare",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Zachovejte nepoužívané importované hodnoty ve výstupu JavaScriptu, který by se jinak odebral.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "Vytiskněte si všechny soubory přečtené při kompilaci.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Vytiskněte si soubory přečtené při kompilaci, včetně důvodu jejich zahrnutí.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Umožňuje vypsat názvy souborů a důvod, proč jsou součástí kompilace.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "Signatury indexu {0} jsou nekompatibilní.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "{0} Typ indexu {1} se nedá přiřadit k {2} typu indexu {3}.",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0} je primitivum, ale {1} je obálkový objekt. Pokud je to možné, použijte raději {0}.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Hodnota {0} je typ a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "{0} se dá přiřadit k omezení typu {1}, ale pro {1} se dala vytvořit instance s jiným podtypem omezení {2}.",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "Deklaruje se {0}, ale jeho hodnota se vůbec nečte.",
1633
1636
  "_0_is_declared_but_never_used_6196": "{0} se nadeklarovalo, ale nepoužilo.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "‚{0}‘ odkazuje jen na typ, ale tady se používá jako hodnota. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na es2015 nebo novější.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "{0} odkazuje na globální UMD, ale aktuální soubor je modul. Zvažte raději přidání importu.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "{0} odkazuje na hodnotu, ale tady se používá jako typ. Měli jste na mysli typeof {0}?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "Hodnota {0} se překládá na deklaraci jenom typu a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "Hodnota {0} se překládá na deklaraci jenom typu a musí se znovu exportovat pomocí zpětného exportu jenom typu, když je povolená vlastnost isolatedModules.",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "Klíčové slovo {0} by mělo být nastaveno uvnitř objektu compilerOptions konfiguračního souboru JSON.",
1663
1669
  "_0_tag_already_specified_1223": "Značka {0} se už specifikovala.",
1664
1670
  "_0_was_also_declared_here_6203": "{0} se deklarovalo i tady.",
1665
1671
  "_0_was_exported_here_1377": "{0} se exportovalo tady.",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Die Option \"--incremental\" kann nur mit \"tsconfig\" und bei Ausgabe in eine einzelne Datei oder bei Festlegung der Option \"--tsBuildInfoFile\" angegeben werden.",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Die Option \"isolatedModules\" kann nur verwendet werden, wenn entweder die Option \"--module\" angegeben ist oder die Option \"target\" den Wert \"ES2015\" oder höher aufweist.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Die Option \"preserveConstEnums\" kann nicht deaktiviert werden, wenn \"isolatedModules\" aktiviert ist.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Die Option „preserveValueImports“ kann nur verwendet werden, wenn „module“ auf „es2015“ oder höher festgelegt ist.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Die Option \"project\" darf nicht mit Quelldateien in einer Befehlszeile kombiniert werden.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Die Option \"--resolveJsonModule\" kann nur angegeben werden, wenn die Modulcodegenerierung \"commonjs\", \"amd\", \"es2015\" oder \"esNext\" lautet.",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Die Option \"--resolveJsonModule\" kann nicht ohne die Modulauflösungsstrategie \"node\" angegeben werden.",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "Verwenden Sie für alle falschen Eigenschaftendeklarationen das Präfix \"declare\".",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "Alle nicht verwendeten Deklarationen nach Möglichkeit mit dem Präfix \"_\" versehen",
1035
1036
  "Prefix_with_declare_95094": "Präfix \"declare\" voranstellen",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Behalten Sie nicht verwendete importierte Werte in der JavaScript-Ausgabe bei, die andernfalls entfernt werden würden.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "Drucken Sie alle Dateien, die während der Kompilierung gelesen wurden.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Während der Kompilierung gelesene Dateien drucken, einschließlich der Gründe für ihre Aufnahme.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Hiermit werden die Namen der Dateien und der Grund dafür ausgegeben, dass die Dateien in der Kompilierung enthalten sind.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "\"{0}\" Indexsignaturen sind inkompatibel.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "\"{0}\" Indextyp \"{1}\" kann nicht \"{2}\" Indextyp \"{3}\" zugewiesen werden.",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "\"{0}\" ist ein primitiver Typ, aber \"{1}\" ist ein Wrapperobjekt. Verwenden Sie vorzugsweise \"{0}\", wenn möglich.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "„{0}“ ist ein Typ und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" kann der Einschränkung vom Typ \"{1}\" zugewiesen werden, aber \"{1}\" könnte mit einem anderen Untertyp der Einschränkung \"{2}\" instanziiert werden.",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "\"{0}\" ist deklariert, aber der zugehörige Wert wird nie gelesen.",
1633
1636
  "_0_is_declared_but_never_used_6196": "\"{0}\" ist deklariert, wird aber nie verwendet.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Wert verwendet. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"es2015\" oder höher.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "\"{0}\" bezieht sich auf eine globale UMD, die aktuelle Datei ist jedoch ein Modul. Ziehen Sie in Betracht, stattdessen einen Import hinzuzufügen.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" bezieht sich auf einen Wert, wird hier jedoch als Typ verwendet. Meinten Sie \"typeof {0}\"?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typreexports erneut exportiert werden, wenn „isolatedModules“ aktiviert ist.",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" sollte im CompilerOptions-Objekt der JSON-Konfigurationsdatei festgelegt werden.",
1663
1669
  "_0_tag_already_specified_1223": "Das Tag \"{0}\" wurde bereits angegeben.",
1664
1670
  "_0_was_also_declared_here_6203": "\"{0}\" wurde hier ebenfalls deklariert.",
1665
1671
  "_0_was_exported_here_1377": "\"{0}\" wurde hier exportiert.",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "La opción \"--incremental\" solo puede especificarse si se usa tsconfig, se emite en un solo archivo o se especifica la opción \"--tsBuildInfoFile\".",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "La opción \"isolatedModules\" solo se puede usar cuando se proporciona la opción \"--module\" o si la opción \"target\" es \"ES2015\" o una versión posterior.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "La opción \"preserveConstEnums\" no se puede deshabilitar cuando \"isolatedModules\" está habilitado.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "La opción \"preserveValueImports\" solo se puede usar cuando \"module\" esté establecido en \"es2015\" o posteriores.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "La opción \"project\" no se puede combinar con archivos de origen en una línea de comandos.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "La opción \"--resolveJsonModule\" solo puede especificarse cuando la generación de código del módulo es \"commonjs\", \"amd\", \"es2015\" o \"esNext\".",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "No se puede especificar la opción \"--resolveJsonModule\" sin la estrategia de resolución de módulos \"node\".",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "Agregar el prefijo \"declare\" a todas las declaraciones de propiedad incorrectas",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "Agregar \"_\" como prefijo a todas las declaraciones sin usar, cuando sea posible",
1035
1036
  "Prefix_with_declare_95094": "Agregar el prefijo \"declare\"",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conserva los valores importados no usados en la salida de JavaScript que, de lo contrario, se quitarían.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "Imprima todos los archivos leídos durante la compilación.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Imprima los archivos leídos durante la compilación, incluyendo la razón por la que se incluyó.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Imprima los nombres de los archivos y el motivo por el que forman parte de la compilación.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "Las signaturas de índice \"{0}\" no son compatibles.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "El tipo de índice \"{0}\"' \"{1}\" no se puede asignar al tipo de índice \"{2}\" \"{3}\".",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' es un elemento primitivo, pero '{1}' es un objeto contenedor. Use '{0}' preferentemente cuando sea posible.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" es un tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" puede asignarse a la restricción de tipo \"{1}\", pero no se pudo crear una instancia de \"{1}\" con un subtipo distinto de la restricción \"{2}\".",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "Se declara \"{0}\", pero su valor no se lee nunca.",
1633
1636
  "_0_is_declared_but_never_used_6196": "\"{0}\" se declara pero nunca se utiliza.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" solo hace referencia a un tipo, pero aquí se usa como valor. ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a es2015 o posterior.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' hace referencia a un elemento UMD global, pero el archivo actual es un módulo. Puede agregar una importación en su lugar.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" hace referencia a un valor, pero aquí se usa como tipo. ¿Quiso decir \"typeof {0}\"?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" se resuelve como una declaración de solo tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" se resuelve como una declaración de solo tipo y debe volverse a exportar con un tipo de reexportación solo cuando esté habilitada la opción \"isolatedModules\".",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" debe establecerse dentro del objeto \"compilerOptions\" del archivo .json de configuración",
1663
1669
  "_0_tag_already_specified_1223": "La etiqueta '{0}' ya se ha especificado.",
1664
1670
  "_0_was_also_declared_here_6203": "\"{0}\" también se ha declarado aquí.",
1665
1671
  "_0_was_exported_here_1377": "\"{0}\" se ha exportado aquí.",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "L'option '--incremental' peut uniquement être spécifiée à l'aide de tsconfig, en cas d'émission vers un seul fichier ou quand l'option '--tsBuildInfoFile' est spécifiée.",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'option 'isolatedModules' peut être utilisée seulement quand l'option '--module' est spécifiée, ou quand l'option 'target' a la valeur 'ES2015' ou une version supérieure.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "L'option 'preserveConstEnums' ne peut pas être désactivée quand 'isolatedModules' est activé.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L’option « preserveValueImports » peut uniquement être utilisée quand « module » a la valeur « es2015 » ou une version ultérieure.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Impossible d'associer l'option 'project' à des fichiers sources sur une ligne de commande.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "L'option '--resolveJsonModule' peut uniquement être spécifiée quand la génération du code de module est 'commonjs', 'amd', 'es2015' ou 'esNext'.",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Impossible de spécifier l'option '--resolveJsonModule' sans la stratégie de résolution de module 'node'.",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "Faire commencer toutes les déclarations de propriété incorrectes par 'declare'",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "Préfixer toutes les déclarations inutilisées avec '_' si possible",
1035
1036
  "Prefix_with_declare_95094": "Faire commencer par 'declare'",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conservez les valeurs importées inutilisées dans la sortie JavaScript qui seraient normalement supprimées.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "Imprimez tous les fichiers lus pendant la compilation.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Fichiers d’impression lus pendant la compilation, notamment la raison de l’inclusion.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Affiche les noms des fichiers et la raison pour laquelle ils font partie de la compilation.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "Les signatures d'index « {0} » sont incompatibles.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Le type d’index « {0} », « {1} », ne peut pas être attribué au type d’index « {2} », « {3} ».",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' est une primitive, mais '{1}' est un objet wrapper. Si possible, utilisez '{0}' de préférence.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "« {0} » est un type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' peut être assigné à la contrainte de type '{1}', mais '{1}' a pu être instancié avec un autre sous-type de contrainte '{2}'.",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "'{0}' est déclaré mais sa valeur n'est jamais lue.",
1633
1636
  "_0_is_declared_but_never_used_6196": "'{0}' est déclaré mais n'est jamais utilisé.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' fait uniquement référence à un type, mais il est utilisé ici en tant que valeur. Devez-vous changer votre bibliothèque cible ? Essayez de remplacer l'option de compilateur 'lib' par es2015 ou une version ultérieure.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fait référence à une variable globale UMD, mais le fichier actuel est un module. Ajoutez une importation à la place.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fait référence à une valeur, mais il est utilisé ici en tant que type. Est-ce que vous avez voulu utiliser 'typeof {0}' ?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "« {0} » se résout en une déclaration de type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "« {0} » se résout une déclaration de type unique et doit être réexporté à l'aide d'une réexportation de type unique lorsque l'option « isolatedModules » est activée.",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' doit être défini dans l'objet 'compilerOptions' du fichier de configuration json",
1663
1669
  "_0_tag_already_specified_1223": "La balise '{0}' est déjà spécifiée.",
1664
1670
  "_0_was_also_declared_here_6203": "'{0}' a également été déclaré ici.",
1665
1671
  "_0_was_exported_here_1377": "'{0}' a été exporté ici.",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "È possibile specificare l'opzione '--incremental' solo se si usa tsconfig, si crea un singolo file o si specifica l'opzione '--tsBuildInfoFile'.",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'opzione 'isolatedModules' può essere usata solo quando si specifica l'opzione '--module' oppure il valore dell'opzione 'target' è 'ES2015' o maggiore.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Non è possibile disabilitare l'opzione 'preserveConstEnums' quando l'opzione 'isolatedModules' è abilitata.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L'opzione 'preserveValueImports' può essere usata solo quando 'module' è impostato su 'es2015' o versione successiva.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Non è possibile combinare l'opzione 'project' con file di origine in una riga di comando.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "È possibile specificare l'opzione '--resolveJsonModule' solo quando la generazione del codice del modulo è impostata su 'commonjs', 'amd', 'es2015' o 'esNext'.",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Non è possibile specificare l'opzione '--resolveJsonModule' senza la strategia di risoluzione del modulo 'node'.",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "Aggiungere 'declare' come prefisso a tutte le dichiarazioni di proprietà non corrette",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "Aggiungere a tutte le dichiarazioni non usate il prefisso '_', laddove possibile",
1035
1036
  "Prefix_with_declare_95094": "Aggiungere il prefisso 'declare'",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conserva i valori importati non usati nell'output JavaScript che altrimenti verrebbe rimosso.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "Stampa tutti i file letti durante la compilazione.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Stampa i file letti durante la compilazione e indica il motivo per cui sono stati inclusi.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Stampa i nomi dei file e il motivo per cui fanno parte della compilazione.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "Le firme dell'indice '{0}' non sono compatibili.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Il tipo di indice '{0}' '{1}' non è assegnabile al tipo di indice '{2}' '{3}'.",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' è una primitiva, ma '{1}' è un oggetto wrapper. Quando possibile, preferire '{0}'.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' è un tipo e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' è assegnabile al vincolo di tipo '{1}', ma è possibile creare un'istanza di '{1}' con un sottotipo diverso del vincolo '{2}'.",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "L'elemento '{0}' è dichiarato, ma il suo valore non viene mai letto.",
1633
1636
  "_0_is_declared_but_never_used_6196": "La variabile '{0}' è dichiarata, ma non viene mai usata.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' si riferisce solo a un tipo, ma in questo punto viene usato come valore. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su es2015 o versioni successive.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fa riferimento a un istruzione globale UMD, ma il file corrente è un modulo. Provare ad aggiungere un'importazione.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fa riferimento a un valore, ma qui viene usato come tipo. Si intendeva 'typeof {0}'?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere riesportato usando una riesportazione solo di tipi quando 'isolatedModules' è abilitato.",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "' {0}' deve essere impostato all'interno dell'oggetto 'compilerOptions' del file JSON di configurazione",
1663
1669
  "_0_tag_already_specified_1223": "Il tag '{0}' è già specificato.",
1664
1670
  "_0_was_also_declared_here_6203": "In questo punto viene dichiarato anche '{0}'.",
1665
1671
  "_0_was_exported_here_1377": "In questo punto è stato esportato '{0}'.",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "オプション '--incremental' は、tsconfig を使用して指定して単一ファイルに出力するか、オプション '--tsBuildInfoFile' が指定された場合にのみ指定することができます。",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "オプション 'isolatedModules' は、オプション '--module' が指定されているか、オプション 'target' が 'ES2015' 以上であるかのいずれかの場合でのみ使用できます。",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules' が有効になっているときは、オプション 'preserveConstEnums' を無効にできません。",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "オプションの \"preserveValueImports\" は \"module\" が \"es2015\" か、またはそれ以降に設定されている時のみ、使用することができます。",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "オプション 'project' をコマンド ライン上でソース ファイルと一緒に指定することはできません。",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "オプション '--resolveJsonModule' は、モジュール コードの生成が 'commonjs'、'amd'、'es2015'、'esNext' である場合にのみ指定できます。",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' モジュールの解決方法を使用せずにオプション '--resolveJsonModule' を指定することはできません。",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "すべての正しくないプロパティ宣言の前に 'declare' を付ける",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "可能な場合は、使用されていないすべての宣言にプレフィックスとして '_' を付けます",
1035
1036
  "Prefix_with_declare_95094": "'declare' を前に付ける",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "さもなければ削除されてしまう JavaScript のアウトプット中の使われていないインポートされた値を保持します。",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "コンパイル時に読み取られたすべてのファイルを出力します。",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "コンパイル時に読み取られたファイルを、それが含まれる理由と共に出力します。",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "ファイルの名前と、それらがコンパイルに含まれている理由を書き出します。",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "'{0}' インデックス シグネチャに互換性がありません。",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}'インデックス型'{1}' を '{2}'インデックス型'{3}' に割り当てることはできません。",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' はプリミティブですが、'{1}' はラッパー オブジェクトです。できれば '{0}' をご使用ください。",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" は型であり、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートされる必要があります。",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' は型 '{1}' の制約に代入できますが、'{1}' は制約 '{2}' の別のサブタイプでインスタンス化できることがあります。",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "'{0}' が宣言されていますが、その値が読み取られることはありません。",
1633
1636
  "_0_is_declared_but_never_used_6196": "'{0}' は宣言されましたが使用されませんでした。",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' は型のみを参照しますが、ここでは値として使用されています。ターゲット ライブラリを変更しますか? 'lib' コンパイラ オプションを es2015 以降に変更してみてください。",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' は UMD グローバルを参照していますが、現在のファイルはモジュールです。代わりにインポートを追加することを考慮してください。",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' は値を参照していますが、ここでは型として使用されています。'typeof {0}' を意図していましたか?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" は型に限定した宣言を解決するため、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートする必要があります。",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" は型に限定した宣言を解決するため、\" isolatedModules\" が有効になっているときは、型に限定した再エクスポートを使用して再エクスポートされる必要があります。",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "config json ファイル の 'compilerOptions' オブジェクト内に '{0}' を設定する必要があります。",
1663
1669
  "_0_tag_already_specified_1223": "'{0}' タグは既に指定されています。",
1664
1670
  "_0_was_also_declared_here_6203": "ここでは '{0}' も宣言されました。",
1665
1671
  "_0_was_exported_here_1377": "ここでは '{0} ' がエクスポートされました。",
@@ -969,6 +969,7 @@
969
969
  "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "'--incremental' 옵션은 tsconfig를 사용하거나 단일 파일로 내보내서 지정하거나 '--tsBuildInfoFile' 옵션을 지정할 때만 지정할 수 있습니다.",
970
970
  "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "'isolatedModules' 옵션은 '--module' 옵션을 지정하거나 'target' 옵션이 'ES2015' 이상인 경우에만 사용할 수 있습니다.",
971
971
  "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules'가 사용하도록 설정된 경우 'preserveConstEnums' 옵션을 사용하지 않도록 설정할 수 없습니다.",
972
+ "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "'preserveValueImports' 옵션은 'module'이 'es2015' 이상으로 설정된 경우에만 사용할 수 있습니다.",
972
973
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "명령줄에서 'project' 옵션을 원본 파일과 혼합하여 사용할 수 없습니다.",
973
974
  "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "'--resolveJsonModule' 옵션은 모듈 코드 생성이 'commonjs', 'amd', 'es2015' 또는 'esNext'일 경우에만 지정할 수 있습니다.",
974
975
  "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' 모듈 확인 전략 없이 '--resolveJsonModule' 옵션을 지정할 수 없습니다.",
@@ -1033,6 +1034,7 @@
1033
1034
  "Prefix_all_incorrect_property_declarations_with_declare_95095": "모든 잘못된 속성 선언에 'declare'를 접두사로 추가",
1034
1035
  "Prefix_all_unused_declarations_with_where_possible_95025": "가능한 경우 사용하지 않는 모든 선언에 '_'을 접두사로 추가",
1035
1036
  "Prefix_with_declare_95094": "'declare'를 접두사로 추가",
1037
+ "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "JavaScript 출력에서 사용되지 않는 가져온 값을 유지합니다. 그렇지 않으면 제거됩니다.",
1036
1038
  "Print_all_of_the_files_read_during_the_compilation_6653": "컴파일 중에 읽은 모든 파일을 출력합니다.",
1037
1039
  "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "컴파일 중에 읽은 파일을 포함 이유와 함께 출력합니다.",
1038
1040
  "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "파일의 이름과 해당 파일이 컴파일에 포함된 이유를 출력합니다.",
@@ -1628,6 +1630,7 @@
1628
1630
  "_0_index_signatures_are_incompatible_2634": "'{0}' 인덱스 시그니처가 호환되지 않습니다.",
1629
1631
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 인덱스 유형 '{1}'을(를) '{2}' 인텍스 유형 '{3}'에 할당할 수 없습니다.",
1630
1632
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0}'은(는) 기본 개체이지만 '{1}'은(는) 래퍼 개체입니다. 가능한 경우 '{0}'을(를) 사용하세요.",
1633
+ "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}'은(는) 형식이며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.",
1631
1634
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}'은(는) '{1}' 형식의 제약 조건에 할당할 수 있지만, '{1}'은(는) '{2}' 제약 조건의 다른 하위 형식으로 인스턴스화할 수 있습니다.",
1632
1635
  "_0_is_declared_but_its_value_is_never_read_6133": "'{0}'이(가) 선언은 되었지만 해당 값이 읽히지는 않았습니다.",
1633
1636
  "_0_is_declared_but_never_used_6196": "'{0}'이(가) 선언되었지만 사용되지 않았습니다.",
@@ -1660,6 +1663,9 @@
1660
1663
  "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}'은(는) 형식만 참조하지만, 여기서는 값으로 사용되고 있습니다. 대상 라이브러리를 변경하려는 경우 'lib' 컴파일러 옵션을 es2015 이상으로 변경해 보세요.",
1661
1664
  "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}'은(는) UMD 전역을 참조하지만 현재 파일은 모듈입니다. 대신 가져오기를 추가해 보세요.",
1662
1665
  "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}'은(는) 값을 참조하지만, 여기서는 형식으로 사용되고 있습니다. 'typeof {0}'을(를) 사용하시겠습니까?",
1666
+ "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.",
1667
+ "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'isolatedModules'를 사용하도록 설정한 경우 형식 전용 다시 내보내기를 사용하여 다시 내보내야 합니다.",
1668
+ "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}'은(는) 구성 json 파일의 'compilerOptions' 개체 내에 설정해야 합니다.",
1663
1669
  "_0_tag_already_specified_1223": "'{0}' 태그가 이미 지정되었습니다.",
1664
1670
  "_0_was_also_declared_here_6203": "여기서도 '{0}'이(가) 선언되었습니다.",
1665
1671
  "_0_was_exported_here_1377": "여기서는 '{0}'을(를) 내보냈습니다.",
@@ -223,7 +223,7 @@ interface PromiseConstructor {
223
223
  * @param values An iterable of Promises.
224
224
  * @returns A new Promise.
225
225
  */
226
- all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
226
+ all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
227
227
 
228
228
  /**
229
229
  * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
@@ -231,15 +231,7 @@ interface PromiseConstructor {
231
231
  * @param values An iterable of Promises.
232
232
  * @returns A new Promise.
233
233
  */
234
- race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
235
-
236
- /**
237
- * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
238
- * or rejected.
239
- * @param values An iterable of Promises.
240
- * @returns A new Promise.
241
- */
242
- race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
234
+ race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
243
235
  }
244
236
 
245
237
  interface String {
@@ -38,79 +38,7 @@ interface PromiseConstructor {
38
38
  * @param values An array of Promises.
39
39
  * @returns A new Promise.
40
40
  */
41
- all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
42
-
43
- /**
44
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
45
- * resolve, or rejected when any Promise is rejected.
46
- * @param values An array of Promises.
47
- * @returns A new Promise.
48
- */
49
- all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
50
-
51
- /**
52
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
53
- * resolve, or rejected when any Promise is rejected.
54
- * @param values An array of Promises.
55
- * @returns A new Promise.
56
- */
57
- all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
58
-
59
- /**
60
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
61
- * resolve, or rejected when any Promise is rejected.
62
- * @param values An array of Promises.
63
- * @returns A new Promise.
64
- */
65
- all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
66
-
67
- /**
68
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
69
- * resolve, or rejected when any Promise is rejected.
70
- * @param values An array of Promises.
71
- * @returns A new Promise.
72
- */
73
- all<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
74
-
75
- /**
76
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
77
- * resolve, or rejected when any Promise is rejected.
78
- * @param values An array of Promises.
79
- * @returns A new Promise.
80
- */
81
- all<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
82
-
83
- /**
84
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
85
- * resolve, or rejected when any Promise is rejected.
86
- * @param values An array of Promises.
87
- * @returns A new Promise.
88
- */
89
- all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;
90
-
91
- /**
92
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
93
- * resolve, or rejected when any Promise is rejected.
94
- * @param values An array of Promises.
95
- * @returns A new Promise.
96
- */
97
- all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
98
-
99
- /**
100
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
101
- * resolve, or rejected when any Promise is rejected.
102
- * @param values An array of Promises.
103
- * @returns A new Promise.
104
- */
105
- all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
106
-
107
- /**
108
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
109
- * resolve, or rejected when any Promise is rejected.
110
- * @param values An array of Promises.
111
- * @returns A new Promise.
112
- */
113
- all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
41
+ all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
114
42
 
115
43
  // see: lib.es2015.iterable.d.ts
116
44
  // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
@@ -121,7 +49,7 @@ interface PromiseConstructor {
121
49
  * @param values An array of Promises.
122
50
  * @returns A new Promise.
123
51
  */
124
- race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
52
+ race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
125
53
 
126
54
  // see: lib.es2015.iterable.d.ts
127
55
  // race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
@@ -25,13 +25,13 @@ declare namespace Intl {
25
25
  type PluralRuleType = "cardinal" | "ordinal";
26
26
 
27
27
  interface PluralRulesOptions {
28
- localeMatcher?: "lookup" | "best fit";
29
- type?: PluralRuleType;
30
- minimumIntegerDigits?: number;
31
- minimumFractionDigits?: number;
32
- maximumFractionDigits?: number;
33
- minimumSignificantDigits?: number;
34
- maximumSignificantDigits?: number;
28
+ localeMatcher?: "lookup" | "best fit" | undefined;
29
+ type?: PluralRuleType | undefined;
30
+ minimumIntegerDigits?: number | undefined;
31
+ minimumFractionDigits?: number | undefined;
32
+ maximumFractionDigits?: number | undefined;
33
+ minimumSignificantDigits?: number | undefined;
34
+ maximumSignificantDigits?: number | undefined;
35
35
  }
36
36
 
37
37
  interface ResolvedPluralRulesOptions {
@@ -53,9 +53,21 @@ declare namespace Intl {
53
53
  const PluralRules: {
54
54
  new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
55
55
  (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
56
- supportedLocalesOf(
57
- locales: string | string[],
58
- options?: PluralRulesOptions,
59
- ): string[];
56
+
57
+ supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
60
58
  };
59
+
60
+ // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
61
+ type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
62
+ type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
63
+ type NumberFormatPartType = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
64
+
65
+ interface NumberFormatPart {
66
+ type: NumberFormatPartType;
67
+ value: string;
68
+ }
69
+
70
+ interface NumberFormat {
71
+ formatToParts(number?: number | bigint): NumberFormatPart[];
72
+ }
61
73
  }
@@ -24,7 +24,6 @@ declare namespace Intl {
24
24
  * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
25
25
  *
26
26
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
27
- *
28
27
  */
29
28
  type UnicodeBCP47LocaleIdentifier = string;
30
29
 
@@ -32,26 +31,29 @@ declare namespace Intl {
32
31
  * Unit to use in the relative time internationalized message.
33
32
  *
34
33
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
35
- *
36
- * [Specification](https://tc39.es/ecma402/#sec-singularrelativetimeunit).
37
34
  */
38
35
  type RelativeTimeFormatUnit =
39
- | "year" | "years"
40
- | "quarter" | "quarters"
41
- | "month" | "months"
42
- | "week" | "weeks"
43
- | "day" | "days"
44
- | "hour" | "hours"
45
- | "minute" | "minutes"
46
- | "second" | "seconds"
47
- ;
36
+ | "year"
37
+ | "years"
38
+ | "quarter"
39
+ | "quarters"
40
+ | "month"
41
+ | "months"
42
+ | "week"
43
+ | "weeks"
44
+ | "day"
45
+ | "days"
46
+ | "hour"
47
+ | "hours"
48
+ | "minute"
49
+ | "minutes"
50
+ | "second"
51
+ | "seconds";
48
52
 
49
53
  /**
50
54
  * The locale matching algorithm to use.
51
55
  *
52
56
  * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
53
- *
54
- * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
55
57
  */
56
58
  type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
57
59
 
@@ -59,8 +61,6 @@ declare namespace Intl {
59
61
  * The format of output message.
60
62
  *
61
63
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
62
- *
63
- * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
64
64
  */
65
65
  type RelativeTimeFormatNumeric = "always" | "auto";
66
66
 
@@ -68,33 +68,37 @@ declare namespace Intl {
68
68
  * The length of the internationalized message.
69
69
  *
70
70
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
71
- *
72
- * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
73
71
  */
74
72
  type RelativeTimeFormatStyle = "long" | "short" | "narrow";
75
73
 
74
+ /**
75
+ * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
76
+ *
77
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
78
+ */
79
+ type BCP47LanguageTag = string;
80
+
76
81
  /**
77
82
  * An object with some or all of properties of `options` parameter
78
83
  * of `Intl.RelativeTimeFormat` constructor.
79
84
  *
80
85
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
81
- *
82
- * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
83
86
  */
84
87
  interface RelativeTimeFormatOptions {
88
+ /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
85
89
  localeMatcher?: RelativeTimeFormatLocaleMatcher;
90
+ /** The format of output message. */
86
91
  numeric?: RelativeTimeFormatNumeric;
92
+ /** The length of the internationalized message. */
87
93
  style?: RelativeTimeFormatStyle;
88
94
  }
89
95
 
90
96
  /**
91
97
  * An object with properties reflecting the locale
92
98
  * and formatting options computed during initialization
93
- * of the `Intel.RelativeTimeFormat` object
99
+ * of the `Intl.RelativeTimeFormat` object
94
100
  *
95
101
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
96
- *
97
- * [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
98
102
  */
99
103
  interface ResolvedRelativeTimeFormatOptions {
100
104
  locale: UnicodeBCP47LocaleIdentifier;
@@ -108,8 +112,6 @@ declare namespace Intl {
108
112
  * that can be used for custom locale-aware formatting.
109
113
  *
110
114
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
111
- *
112
- * [Specification](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts).
113
115
  */
114
116
  interface RelativeTimeFormatPart {
115
117
  type: string;
@@ -126,6 +128,7 @@ declare namespace Intl {
126
128
  *
127
129
  * While this method automatically provides the correct plural forms,
128
130
  * the grammatical form is otherwise as neutral as possible.
131
+ *
129
132
  * It is the caller's responsibility to handle cut-off logic
130
133
  * such as deciding between displaying "in 7 days" or "in 1 week".
131
134
  * This API does not support relative dates involving compound units.
@@ -133,68 +136,33 @@ declare namespace Intl {
133
136
  *
134
137
  * @param value - Numeric value to use in the internationalized relative time message
135
138
  *
136
- * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)
137
- * to use in the relative time internationalized message.
138
- * Possible values are: `"year"`, `"quarter"`, `"month"`, `"week"`,
139
- * `"day"`, `"hour"`, `"minute"`, `"second"`.
140
- * Plural forms are also permitted.
139
+ * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
141
140
  *
142
141
  * @throws `RangeError` if `unit` was given something other than `unit` possible values
143
142
  *
144
- * @returns Internationalized relative time message as string
143
+ * @returns {string} Internationalized relative time message as string
145
144
  *
146
145
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
147
- *
148
- * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.format).
149
146
  */
150
- format(
151
- value: number,
152
- unit: RelativeTimeFormatUnit,
153
- ): string;
147
+ format(value: number, unit: RelativeTimeFormatUnit): string;
154
148
 
155
149
  /**
156
- * A version of the format method which it returns an array of objects
157
- * which represent "parts" of the object,
158
- * separating the formatted number into its constituent parts
159
- * and separating it from other surrounding text.
160
- * These objects have two properties:
161
- * `type` a NumberFormat formatToParts type, and `value`,
162
- * which is the String which is the component of the output.
163
- * If a "part" came from NumberFormat,
164
- * it will have a unit property which indicates the `unit` being formatted;
165
- * literals which are part of the larger frame will not have this property.
150
+ * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
166
151
  *
167
152
  * @param value - Numeric value to use in the internationalized relative time message
168
153
  *
169
- * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)
170
- * to use in the relative time internationalized message.
171
- * Possible values are: `"year"`, `"quarter"`, `"month"`, `"week"`,
172
- * `"day"`, `"hour"`, `"minute"`, `"second"`.
173
- * Plural forms are also permitted.
154
+ * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
174
155
  *
175
156
  * @throws `RangeError` if `unit` was given something other than `unit` possible values
176
157
  *
177
- * @returns Array of [FormatRelativeTimeToParts](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts)
178
- *
179
158
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
180
- *
181
- * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.formatToParts).
182
159
  */
183
- formatToParts(
184
- value: number,
185
- unit: RelativeTimeFormatUnit,
186
- ): RelativeTimeFormatPart[];
160
+ formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
187
161
 
188
162
  /**
189
163
  * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.
190
164
  *
191
- * @returns A new object with properties reflecting the locale
192
- * and formatting options computed during initialization
193
- * of the `Intel.RelativeTimeFormat` object.
194
- *
195
165
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
196
- *
197
- * [Specification](https://tc39.es/ecma402/#sec-intl.relativetimeformat.prototype.resolvedoptions)
198
166
  */
199
167
  resolvedOptions(): ResolvedRelativeTimeFormatOptions;
200
168
  }
@@ -203,41 +171,22 @@ declare namespace Intl {
203
171
  * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
204
172
  * object is a constructor for objects that enable language-sensitive relative time formatting.
205
173
  *
206
- * Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
207
- * namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).
208
- *
209
174
  * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
210
- *
211
- * [Polyfills](https://github.com/tc39/proposal-intl-relative-time#polyfills).
212
175
  */
213
176
  const RelativeTimeFormat: {
214
177
  /**
215
- * Constructor creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
216
- * objects
178
+ * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
217
179
  *
218
180
  * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
219
181
  * For the general form and interpretation of the locales argument,
220
182
  * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
221
183
  *
222
184
  * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
223
- * with some or all of options of the formatting.
224
- * An object with some or all of the following properties:
225
- * - `localeMatcher` - The locale matching algorithm to use.
226
- * Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
227
- * For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
228
- * - `numeric` - The format of output message.
229
- * Possible values are: `"always"` (default, e.g., `1 day ago`) or `"auto"` (e.g., `yesterday`).
230
- * The `"auto"` value allows to not always have to use numeric values in the output.
231
- * - `style` - The length of the internationalized message. Possible values are:
232
- * `"long"` (default, e.g., in 1 month),
233
- * `"short"` (e.g., in 1 mo.)
234
- * or `"narrow"` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
185
+ * with some or all of options of `RelativeTimeFormatOptions`.
235
186
  *
236
187
  * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
237
188
  *
238
189
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
239
- *
240
- * [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
241
190
  */
242
191
  new(
243
192
  locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
@@ -255,25 +204,12 @@ declare namespace Intl {
255
204
  *
256
205
  * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
257
206
  * with some or all of options of the formatting.
258
- * An object with some or all of the following properties:
259
- * - `localeMatcher` - The locale matching algorithm to use.
260
- * Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
261
- * For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
262
- * - `numeric` - The format of output message.
263
- * Possible values are: `"always"` (default, e.g., `1 day ago`) or `"auto"` (e.g., `yesterday`).
264
- * The `"auto"` value allows to not always have to use numeric values in the output.
265
- * - `style` - The length of the internationalized message. Possible values are:
266
- * `"long"` (default, e.g., in 1 month),
267
- * `"short"` (e.g., in 1 mo.)
268
- * or `"narrow"` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
269
207
  *
270
208
  * @returns An array containing those of the provided locales
271
209
  * that are supported in date and time formatting
272
210
  * without having to fall back to the runtime's default locale.
273
211
  *
274
212
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
275
- *
276
- * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
277
213
  */
278
214
  supportedLocalesOf(
279
215
  locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
@@ -282,28 +218,151 @@ declare namespace Intl {
282
218
  };
283
219
 
284
220
  interface NumberFormatOptions {
285
- compactDisplay?: string;
286
- notation?: string;
287
- signDisplay?: string;
288
- unit?: string;
289
- unitDisplay?: string;
221
+ compactDisplay?: "short" | "long" | undefined;
222
+ notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
223
+ signDisplay?: "auto" | "never" | "always" | undefined;
224
+ unit?: string | undefined;
225
+ unitDisplay?: "short" | "long" | "narrow" | undefined;
290
226
  }
291
227
 
292
228
  interface ResolvedNumberFormatOptions {
293
- compactDisplay?: string;
294
- notation?: string;
295
- signDisplay?: string;
229
+ compactDisplay?: "short" | "long";
230
+ notation?: "standard" | "scientific" | "engineering" | "compact";
231
+ signDisplay?: "auto" | "never" | "always";
296
232
  unit?: string;
297
- unitDisplay?: string;
233
+ unitDisplay?: "short" | "long" | "narrow";
298
234
  }
299
235
 
300
236
  interface DateTimeFormatOptions {
301
- dateStyle?: "full" | "long" | "medium" | "short";
302
- timeStyle?: "full" | "long" | "medium" | "short";
237
+ calendar?: string | undefined;
238
+ dayPeriod?: "narrow" | "short" | "long" | undefined;
239
+ numberingSystem?: string | undefined;
240
+
241
+ dateStyle?: "full" | "long" | "medium" | "short" | undefined;
242
+ timeStyle?: "full" | "long" | "medium" | "short" | undefined;
243
+ hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
244
+ }
245
+
246
+ type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
247
+ type LocaleCollationCaseFirst = "upper" | "lower" | "false";
248
+
249
+ interface LocaleOptions {
250
+ /** A string containing the language, and the script and region if available. */
251
+ baseName?: string;
252
+ /** The part of the Locale that indicates the locale's calendar era. */
303
253
  calendar?: string;
304
- dayPeriod?: "narrow" | "short" | "long";
254
+ /** Flag that defines whether case is taken into account for the locale's collation rules. */
255
+ caseFirst?: LocaleCollationCaseFirst;
256
+ /** The collation type used for sorting */
257
+ collation?: string;
258
+ /** The time keeping format convention used by the locale. */
259
+ hourCycle?: LocaleHourCycleKey;
260
+ /** The primary language subtag associated with the locale. */
261
+ language?: string;
262
+ /** The numeral system used by the locale. */
305
263
  numberingSystem?: string;
306
- hourCycle?: "h11" | "h12" | "h23" | "h24";
307
- fractionalSecondDigits?: 0 | 1 | 2 | 3;
264
+ /** Flag that defines whether the locale has special collation handling for numeric characters. */
265
+ numeric?: boolean;
266
+ /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
267
+ region?: string;
268
+ /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
269
+ script?: string;
270
+ }
271
+
272
+ interface Locale extends LocaleOptions {
273
+ /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
274
+ maximize(): Locale;
275
+ /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */
276
+ minimize(): Locale;
277
+ /** Returns the locale's full locale identifier string. */
278
+ toString(): BCP47LanguageTag;
308
279
  }
280
+
281
+ /**
282
+ * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
283
+ * objects
284
+ *
285
+ * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
286
+ * For the general form and interpretation of the locales argument,
287
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
288
+ *
289
+ * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
290
+ *
291
+ * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
292
+ *
293
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
294
+ */
295
+ const Locale: {
296
+ new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;
297
+ };
298
+
299
+ interface DisplayNamesOptions {
300
+ localeMatcher: RelativeTimeFormatLocaleMatcher;
301
+ style: RelativeTimeFormatStyle;
302
+ type: "language" | "region" | "script" | "currency";
303
+ fallback: "code" | "none";
304
+ }
305
+
306
+ interface DisplayNames {
307
+ /**
308
+ * Receives a code and returns a string based on the locale and options provided when instantiating
309
+ * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
310
+ *
311
+ * @param code The `code` to provide depends on the `type` passed to display name during creation:
312
+ * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
313
+ * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
314
+ * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
315
+ * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )
316
+ * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
317
+ * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
318
+ * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
319
+ *
320
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
321
+ */
322
+ of(code: string): string;
323
+ /**
324
+ * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
325
+ * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
326
+ *
327
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
328
+ */
329
+ resolvedOptions(): DisplayNamesOptions;
330
+ }
331
+
332
+ /**
333
+ * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
334
+ * object enables the consistent translation of language, region and script display names.
335
+ *
336
+ * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
337
+ */
338
+ const DisplayNames: {
339
+ prototype: DisplayNames;
340
+
341
+ /**
342
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.
343
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
344
+ * page.
345
+ *
346
+ * @param options An object for setting up a display name.
347
+ *
348
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
349
+ */
350
+ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;
351
+
352
+ /**
353
+ * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
354
+ *
355
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.
356
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
357
+ * page.
358
+ *
359
+ * @param options An object with a locale matcher.
360
+ *
361
+ * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
362
+ *
363
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
364
+ */
365
+ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];
366
+ };
367
+
309
368
  }