Skip to content

Commit fccdf1f

Browse files
committed
Merge branch 'main' into feature/noErasingImportedNames
2 parents 3063638 + a3eadfe commit fccdf1f

File tree

1,051 files changed

+154903
-94556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,051 files changed

+154903
-94556
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
],
3535

3636
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
37+
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as" }],
3738

3839
"no-duplicate-imports": "off",
3940
"@typescript-eslint/no-duplicate-imports": "error",

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Thank you for submitting a pull request!
33
44
Please verify that:
55
* [ ] There is an associated issue in the `Backlog` milestone (**required**)
6-
* [ ] Code is up-to-date with the `master` branch
6+
* [ ] Code is up-to-date with the `main` branch
77
* [ ] You've successfully run `gulp runtests` locally
88
* [ ] There are new or updated unit tests validating the change
99
1010
Refer to CONTRIBUTING.MD for more details.
11-
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
11+
https://github.com/Microsoft/TypeScript/blob/main/CONTRIBUTING.md
1212
-->
1313

1414
Fixes #

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- release-*
88
pull_request:
99
branches:
10-
- master
10+
- main
1111
- release-*
1212

1313
jobs:

.github/workflows/codeql.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ jobs:
2020
# a pull request then we can checkout the head.
2121
fetch-depth: 2
2222

23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
27-
2823
# Initializes the CodeQL tools for scanning.
2924
- name: Initialize CodeQL
3025
uses: github/codeql-action/init@v1

.github/workflows/sync-branch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- run: |
2929
git config user.email "[email protected]"
3030
git config user.name "TypeScript Bot"
31-
git fetch origin master
32-
git merge origin/master --no-ff
31+
git fetch origin main
32+
git merge origin/main --no-ff
3333
npm ci
3434
npm test
3535
git push

.github/workflows/sync-wiki.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync Two Wiki Repos
2+
3+
on: [gollum]
4+
5+
jobs:
6+
sync:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Get repo name
10+
run: R=${GITHUB_REPOSITORY%?wiki}; echo "BASENAME=${R##*/}" >> $GITHUB_ENV
11+
- name: Checkout ${{ env.BASENAME }}-wiki
12+
uses: actions/checkout@v2
13+
with:
14+
repository: "${{ GITHUB.repository_owner }}/${{ env.BASENAME }}-wiki"
15+
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
16+
fetch-depth: 0
17+
- name: Run sync
18+
run: ./.github/workflows/sync
19+
env:
20+
PUSHER: typescript-bot <[email protected]>
21+
AUTH: ${{ secrets.TS_BOT_GITHUB_TOKEN }}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ You will need to complete a Contributor License Agreement (CLA). Briefly, this a
102102
Your pull request should:
103103

104104
* Include a description of what your change intends to do
105-
* Be based on reasonably recent commit in the **master** branch
105+
* Be based on reasonably recent commit in the **main** branch
106106
* Include adequate tests
107107
* At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
108108
* Tests should include reasonable permutations of the target fix/change
@@ -118,7 +118,7 @@ There are three relevant locations to be aware of when it comes to TypeScript's
118118
* `lib`: the location of the last-known-good (LKG) versions of the files which are updated periodically.
119119
* `built/local`: the build output location, including where `src/lib` files will be copied to.
120120

121-
Any changes should be made to [src/lib](https://github.com/Microsoft/TypeScript/tree/master/src/lib). **Most** of these files can be updated by hand, with the exception of any generated files (see below).
121+
Any changes should be made to [src/lib](https://github.com/Microsoft/TypeScript/tree/main/src/lib). **Most** of these files can be updated by hand, with the exception of any generated files (see below).
122122

123123
Library files in `built/local/` are updated automatically by running the standard build task:
124124

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ npm install -g typescript@next
2626

2727
## Contribute
2828

29-
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
29+
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript.
3030
* [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
3131
* Review the [source code changes](https://github.com/microsoft/TypeScript/pulls).
3232
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
3333
* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
3434
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
35-
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md).
36-
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
37-
[pdf](https://github.com/microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md)).
35+
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
36+
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
37+
[pdf](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)).
3838

3939
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
4040
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected])

lib/cs/diagnosticMessages.generated.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
"An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Implementace se nedá deklarovat v ambientních kontextech.",
200200
"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Alias importu se nemůže odkazovat na deklaraci, která se exportovala pomocí export type.",
201201
"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Alias importu se nemůže odkazovat na deklaraci, která se importovala pomocí import type.",
202+
"An_import_alias_cannot_use_import_type_1392": "Alias importu nemůže používat import type.",
202203
"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232": "Deklarace importu jde použít jenom v oboru názvů nebo modulu.",
203204
"An_import_declaration_cannot_have_modifiers_1191": "Deklarace importu nemůže mít modifikátory.",
204205
"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Cesta pro import nemůže končit příponou {0}. Zvažte možnost importovat místo toho {1}.",
@@ -443,6 +444,7 @@
443444
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Výchozí export modulu má nebo používá privátní název {0}.",
444445
"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definice následujících identifikátorů je v konfliktu s definicemi v jiném souboru: {0}",
445446
"Delete_all_unused_declarations_95024": "Odstranit všechny nepoužívané deklarace",
447+
"Delete_all_unused_imports_95147": "Odstranit všechny nepoužívané importy",
446448
"Delete_the_outputs_of_all_projects_6365": "Odstranit výstupy všech projektů",
447449
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Zastaralé] Použijte místo toho --jsxFactory. Určí objekt vyvolaný pro createElement při cílení na generování JSX react.",
448450
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Zastaralé] Použijte místo toho --outFile. Zřetězí a vygeneruje výstup do jednoho souboru.",
@@ -668,6 +670,7 @@
668670
"Index_signatures_are_incompatible_2330": "Signatury indexu jsou nekompatibilní.",
669671
"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Jednotlivé deklarace ve sloučené deklaraci {0} musí být všechny exportované nebo všechny místní.",
670672
"Infer_all_types_from_usage_95023": "Odvodit všechny typy z použití",
673+
"Infer_function_return_type_95148": "Odvodit návratový typ funkce",
671674
"Infer_parameter_types_from_usage_95012": "Odvodit typy parametrů z využití",
672675
"Infer_this_type_of_0_from_usage_95080": "Vyvodit typ this pro {0} z použití",
673676
"Infer_type_of_0_from_usage_95011": "Odvodit typ {0} z využití",
@@ -814,7 +817,6 @@
814817
"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Osmičkové literály nejsou povolené v inicializátoru členů výčtů. Použijte syntaxi {0}.",
815818
"Octal_literals_are_not_allowed_in_strict_mode_1121": "Osmičkové literály nejsou ve striktním režimu povolené.",
816819
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Osmičkové literály nejsou dostupné při cílení na ECMAScript 5 a vyšší. Použijte syntaxi {0}.",
817-
"Only_ECMAScript_imports_may_use_import_type_1370": "import type můžou používat jen importy ECMAScript.",
818820
"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "V příkazu for...in se povoluje deklarovat jenom jednu proměnnou.",
819821
"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "V příkazu for...of se povoluje deklarovat jenom jednu proměnnou.",
820822
"Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Klíčovým slovem new se dá volat jenom funkce void.",
@@ -920,9 +922,11 @@
920922
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Odkazy projektu nemůžou tvořit cyklický graf. Zjistil se cyklus: {0}",
921923
"Projects_in_this_build_Colon_0_6355": "Projekty v tomto sestavení: {0}",
922924
"Projects_to_reference_6300": "Projekty, které se mají odkazovat",
925+
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Vlastnost {0} pochází ze signatury indexu, proto je zapotřebí k ní přistupovat pomocí ['{0}'].",
923926
"Property_0_does_not_exist_on_const_enum_1_2479": "Vlastnost {0} ve výčtu const {1} neexistuje.",
924927
"Property_0_does_not_exist_on_type_1_2339": "Vlastnost {0} v typu {1} neexistuje.",
925928
"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "Vlastnost {0} v typu {1} neexistuje. Měli jste na mysli {2}?",
929+
"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "Vlastnost {0} v typu {1} neexistuje. Chtěli jste místo toho přistoupit ke statickému členu {2}?",
926930
"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "Vlastnost {0} neexistuje u typu {1}. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru lib na {2} nebo novější.",
927931
"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "Vlastnost {0} nemá žádný inicializátor a není jednoznačně přiřazena v konstruktoru.",
928932
"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "Vlastnost {0} má implicitně typ any, protože její přistupující objekt get nemá anotaci návratového typu.",
@@ -932,7 +936,6 @@
932936
"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "Vlastnost {0} v typu {1} nejde přiřadit ke stejné vlastnosti v základním typu {2}.",
933937
"Property_0_in_type_1_is_not_assignable_to_type_2_2603": "Vlastnost {0} v typu {1} nejde přiřadit typu {2}.",
934938
"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "Vlastnost {0} v typu {1} odkazuje na jiného člena, ke kterému není možné získat přístup z typu {2}.",
935-
"Property_0_is_a_static_member_of_type_1_2576": "Vlastnost {0} není statický člen typu {1}.",
936939
"Property_0_is_declared_but_its_value_is_never_read_6138": "Deklaruje se vlastnost {0}, ale její hodnota se vůbec nečte.",
937940
"Property_0_is_incompatible_with_index_signature_2530": "Vlastnost {0} není kompatibilní se signaturou indexu.",
938941
"Property_0_is_incompatible_with_rest_element_type_2573": "Vlastnost {0} není kompatibilní s typem elementu rest.",
@@ -1007,6 +1010,7 @@
10071010
"Report_errors_in_js_files_8019": "Ohlásit chyby v souborech .js",
10081011
"Report_errors_on_unused_locals_6134": "Umožňuje nahlásit chyby u nevyužitých místních hodnot.",
10091012
"Report_errors_on_unused_parameters_6135": "Umožňuje nahlásit chyby u nevyužitých parametrů.",
1013+
"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6803": "Vyžadovat, aby nedeklarované vlastnosti ze signatur indexů používaly přístupy k elementům",
10101014
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Požadované parametry typu nemůžou být až za volitelnými parametry typu.",
10111015
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Překlad pro modul {0} se našel v mezipaměti umístění {1}.",
10121016
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "keyof překládejte jen na názvy vlastností s hodnotami typu string (ne čísla ani symboly).",
@@ -1146,7 +1150,7 @@
11461150
"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "První parametr metody then příslibu musí být zpětné volání.",
11471151
"The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Globální typ JSX.{0} by neměl mít více než jednu vlastnost.",
11481152
"The_implementation_signature_is_declared_here_2750": "Signatura implementace se deklarovala tady.",
1149-
"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343": "Metavlastnost import.meta se povoluje jen v případě, že možnost --module je nastavená na esnext nebo system.",
1153+
"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343": "Metavlastnost import.meta se povoluje jen v případě, že možnost --module je nastavená na es2020, esnext nebo system.",
11501154
"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Odvozený typ {0} se nedá pojmenovat bez odkazu na {1}. Pravděpodobně to nebude přenosné. Vyžaduje se anotace typu.",
11511155
"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Odvozený typ {0} se odkazuje na typ s cyklickou strukturou, která se nedá triviálně serializovat. Musí se použít anotace typu.",
11521156
"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Odvozený typ {0} odkazuje na nepřístupný typ {1}. Musí se použít anotace typu.",
@@ -1216,7 +1220,7 @@
12161220
"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tento výraz se nedá volat, protože je to přístupový objekt get. Nechtěli jste ho použít bez ()?",
12171221
"This_expression_is_not_constructable_2351": "Tento výraz se nedá vytvořit.",
12181222
"This_file_already_has_a_default_export_95130": "Tento soubor už má výchozí export.",
1219-
"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371": "Tento import se nikdy nepoužívá jako hodnota a musí používat import type, protože importsNotUsedAsValues je nastavené na error.",
1223+
"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Tento import se nikdy nepoužívá jako hodnota a musí používat import type, protože importsNotUsedAsValues je nastavené na error.",
12201224
"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Toto je deklarace, která se rozšiřuje. Zvažte možnost přesunout rozšiřující deklaraci do stejného souboru.",
12211225
"This_may_be_converted_to_an_async_function_80006": "Toto je možné převést na asynchronní funkci.",
12221226
"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Na tento modul je možné se pomocí importů nebo exportů ECMAScript odkazovat jen tak, že se zapne příznak {0} a odkáže se na výchozí export.",
@@ -1342,6 +1346,8 @@
13421346
"Updating_output_of_project_0_6373": "Aktualizuje se výstup projektu {0}...",
13431347
"Updating_output_timestamps_of_project_0_6359": "Aktualizují se výstupní časová razítka projektu {0}...",
13441348
"Updating_unchanged_output_timestamps_of_project_0_6371": "Aktualizují se nezměněná výstupní časová razítka projektu {0}...",
1349+
"Use_element_access_for_0_95145": "Použít přístup k elementům pro {0}",
1350+
"Use_element_access_for_all_undeclared_properties_95146": "Použít přístup k elementům pro všechny nedeklarované vlastnosti",
13451351
"Use_synthetic_default_member_95016": "Použije syntetického výchozího člena.",
13461352
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Použití řetězce v příkazu for...of se podporuje jenom v ECMAScript 5 nebo vyšší verzi.",
13471353
"Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.",

0 commit comments

Comments
 (0)