Skip to content

Commit a5ec725

Browse files
Merge pull request #49007 from microsoft/bump-4.7-rc
Sync and bump release 4.7 to RC
2 parents 6e62273 + ca59c9b commit a5ec725

File tree

1,698 files changed

+296912
-265383
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,698 files changed

+296912
-265383
lines changed

.github/workflows/accept-baselines-fix-lints.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use node version 12
13-
uses: actions/setup-node@v1
12+
- name: Use node version 14
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 12
15+
node-version: 14
1616
registry-url: https://registry.npmjs.org/
1717

1818
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x]
19+
node-version: [14.x, 16.x, 18.x]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
with:
2424
fetch-depth: 5
2525
- name: Use node version ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
- name: Remove existing TypeScript

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111

1212
# CodeQL runs on ubuntu-latest and windows-latest
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'microsoft/TypeScript'
1415

1516
steps:
1617
- name: Checkout repository

.github/workflows/ensure-related-repos-run-crons.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
if: github.repository == 'microsoft/TypeScript'
1718

1819
steps:
1920
- name: Configure git

.github/workflows/new-release-branch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Use node version 12.x
13-
uses: actions/setup-node@v1
12+
- name: Use node version 14.x
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 12.x
15+
node-version: 14.x
1616
- uses: actions/checkout@v2
1717
with:
1818
fetch-depth: 5

.github/workflows/nightly.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'microsoft/TypeScript'
1415

1516
steps:
1617
- uses: actions/checkout@v2
17-
- name: Use node version 12
18-
uses: actions/setup-node@v1
18+
- name: Use node version 14
19+
uses: actions/setup-node@v3
1920
with:
20-
node-version: 12
21+
node-version: 14
2122
registry-url: https://registry.npmjs.org/
2223
- name: Setup and publish nightly
2324
run: |

.github/workflows/release-branch-artifact.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Use node version 12
15-
uses: actions/setup-node@v1
14+
- name: Use node version 14
15+
uses: actions/setup-node@v3
1616
with:
17-
node-version: 12
17+
node-version: 14
1818
- name: Remove existing TypeScript
1919
run: |
2020
npm uninstall typescript --no-save

.github/workflows/rich-navigation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 5
2121

22-
- uses: actions/setup-node@v2
22+
- uses: actions/setup-node@v3
2323
with:
2424
node-version: 14
2525

.github/workflows/set-version.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Use node version 12.x
13-
uses: actions/setup-node@v1
12+
- name: Use node version 14.x
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 12.x
15+
node-version: 14.x
1616
- uses: actions/checkout@v2
1717
with:
1818
ref: ${{ github.event.client_payload.branch_name }}

.github/workflows/sync-branch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Use node version 12.x
18-
uses: actions/setup-node@v1
17+
- name: Use node version 14.x
18+
uses: actions/setup-node@v3
1919
with:
20-
node-version: 12.x
20+
node-version: 14.x
2121
- uses: actions/checkout@v2
2222
with:
2323
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}

.github/workflows/twoslash-repros.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,38 @@ on:
88
- cron: '0 8 * * *'
99
repository_dispatch:
1010
types: run-twoslash-repros
11+
issues:
12+
types:
13+
- labeled
14+
workflow_dispatch:
15+
inputs:
16+
bisect_issue:
17+
description: Triggers a bisect request on the given issue number instead of updating repros on all issues
18+
required: false
19+
type: string
1120

1221
jobs:
13-
build:
22+
run:
23+
if: ${{ github.repository == 'microsoft/TypeScript' && !github.event.label && !github.event.inputs.bisect_issue }}
1424
runs-on: ubuntu-latest
1525
steps:
1626
- name: Use node
17-
uses: actions/setup-node@v1
18-
- run: |
19-
npm init -y
20-
npm install --save typescript@next
27+
uses: actions/setup-node@v3
2128
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
2229
with:
2330
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
31+
32+
bisect:
33+
if: ${{ github.event.label.name == 'Bisect Repro' || github.event.inputs.bisect_issue }}
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: 16
42+
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
43+
with:
44+
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
45+
bisect: ${{ github.event.issue.number || github.event.inputs.bisect_issue }}

.github/workflows/update-lkg.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use node version 12
13-
uses: actions/setup-node@v1
12+
- name: Use node version 14
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 12
15+
node-version: 14
1616
registry-url: https://registry.npmjs.org/
1717

1818
- name: Configure Git and Update LKG

.github/workflows/update-package-lock.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
if: github.repository == 'microsoft/TypeScript'
1314

1415
steps:
1516
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
17+
- uses: actions/setup-node@v3
1718
with:
18-
node-version: 12
19+
node-version: 14
1920
registry-url: https://registry.npmjs.org/
2021

2122
- name: Configure git and update package-lock.json

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ TypeScript is authored by:
169169
- Gabriel Isenberg
170170
- Gabriela Araujo Britto
171171
- Gabriela Britto
172+
- Gao Sheng
172173
- gb714us
173174
- Gilad Peleg
174175
- Godfrey Chan

lib/cs/diagnosticMessages.generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
"Add_void_to_Promise_resolved_without_a_value_95143": "Přidat void k objektu Promise vyřešenému bez hodnoty",
162162
"Add_void_to_all_Promises_resolved_without_a_value_95144": "Přidat void ke všem objektům Promise vyřešeným bez hodnoty",
163163
"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "Přidání souboru tsconfig.json vám pomůže uspořádat projekty, které obsahují jak soubory TypeScript, tak soubory JavaScript. Další informace najdete na adrese https://aka.ms/tsconfig.",
164+
"All_declarations_of_0_must_have_identical_constraints_2838": "Všechny deklarace {0} musí mít identická omezení.",
164165
"All_declarations_of_0_must_have_identical_modifiers_2687": "Všechny deklarace {0} musí mít stejné modifikátory.",
165166
"All_declarations_of_0_must_have_identical_type_parameters_2428": "Všechny deklarace {0} musí mít stejné parametry typu.",
166167
"All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Všechny deklarace abstraktní metody musí jít po sobě.",
@@ -573,7 +574,6 @@
573574
"Duplicate_index_signature_for_type_0_2374": "Duplicitní signatura indexu pro typ {0}.",
574575
"Duplicate_label_0_1114": "Duplicitní popisek {0}",
575576
"Duplicate_property_0_2718": "Duplicitní vlastnost {0}.",
576-
"Dynamic_import_cannot_have_type_arguments_1326": "Dynamický import nemůže mít argumenty typu.",
577577
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Specifikátor dynamického importu musí být typu string, ale tady má typ {0}.",
578578
"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamické importy se podporují jen v případě, že příznak --module je nastavený na es2020, es2022, esnext, commonjs, amd, system, umd, node12 nebo nodenext.",
579579
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dynamické importy můžou jako argumenty přijímat jenom specifikátor modulu a volitelný kontrolní výraz.",
@@ -642,6 +642,7 @@
642642
"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Očekával se tento počet argumentů: {0}, ale byl přijat tento počet: {1}. Nezapomněli jste zahrnout void do argumentu typu pro objekt Promise?",
643643
"Expected_0_type_arguments_but_got_1_2558": "Očekávaly se argumenty typu {0}, ale předaly se argumenty typu {1}.",
644644
"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Očekávané argumenty typu {0}; zadejte je se značkou @extends.",
645+
"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Očekával se 1 argument, ale bylo jich 0. New Promise() potřebuje pomocný parametr JSDoc k vytvoření resolve, který se dá volat bez argumentů.",
645646
"Expected_at_least_0_arguments_but_got_1_2555": "Očekával se aspoň tento počet argumentů: {0}. Počet předaných argumentů: {1}",
646647
"Expected_corresponding_JSX_closing_tag_for_0_17002": "Očekávala se odpovídající ukončující značka JSX pro {0}.",
647648
"Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Pro fragment JSX se očekávala odpovídající uzavírací značka.",
@@ -1483,6 +1484,7 @@
14831484
"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}.",
14841485
"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}.",
14851486
"This_type_parameter_probably_needs_an_extends_object_constraint_2208": "Tento parametr typu pravděpodobně potřebuje omezení „extends object“.",
1487+
"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Toto použití importu není platné. Volání import() se dají zapsat, ale musí mít závorky a nemůžou mít typové argumenty.",
14861488
"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šší.",
14871489
"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.",
14881490
"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šší.",
@@ -1509,7 +1511,6 @@
15091511
"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Typ {0} nepředstavuje platný návratový typ asynchronní funkce v ES5/ES3, protože neodkazuje na hodnotu konstruktoru kompatibilní s příslibem.",
15101512
"Type_0_is_not_an_array_type_2461": "Typ {0} není typ pole.",
15111513
"Type_0_is_not_an_array_type_or_a_string_type_2495": "Typ {0} není typem pole nebo řetězce.",
1512-
"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569": "Typ {0} není typem pole ani typem řetězce. Pokud chcete povolit iteraci iterátorů, použijte možnost kompilátoru --downlevelIteration.",
15131514
"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ {0} není typem pole nebo řetězce, nebo nemá metodu [Symbol.iterator](), která vrací iterátor.",
15141515
"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "Typ {0} není typem pole, nebo nemá metodu [Symbol.iterator](), která vrací iterátor.",
15151516
"Type_0_is_not_assignable_to_type_1_2322": "Typ {0} nejde přiřadit typu {1}.",
@@ -1633,6 +1634,7 @@
16331634
"Variable_declaration_list_cannot_be_empty_1123": "Seznam deklarací proměnných nemůže být prázdný.",
16341635
"Variable_declaration_not_allowed_at_this_location_1440": "Deklarace proměnné není v tomto umístění povolená.",
16351636
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element variadic na pozici {0} ve zdroji neodpovídá elementu na pozici {1} v cíli.",
1637+
"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Poznámky Variance se podporují pouze u aliasů typů pro typy objektů, funkcí, konstruktorů a mapování.",
16361638
"Version_0_6029": "Verze {0}",
16371639
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Další informace o tomto souboru si můžete přečíst na https://aka.ms/tsconfig",
16381640
"WATCH_OPTIONS_6918": "MOŽNOSTI SLEDOVÁNÍ",

0 commit comments

Comments
 (0)