Skip to content

Commit 34d43f0

Browse files
committed
Merge remote-tracking branch 'origin/main' into filter-out-classes-with-private-members-for-contextual-type
2 parents dcff0c7 + fbcdb8c commit 34d43f0

File tree

3,243 files changed

+261101
-82282
lines changed

Some content is hidden

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

3,243 files changed

+261101
-82282
lines changed

.dprint.jsonc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
"yml.singleQuote": true,
3939
"yaml.singleQuote": true
4040
},
41+
"json": {
42+
// This would be good to do in known-JSONC files, but VS Code warns on trailing commas.
43+
"trailingCommas": "never"
44+
},
4145
"excludes": [
4246
"**/node_modules",
4347
"**/*-lock.json",
@@ -51,8 +55,8 @@
5155
],
5256
// Note: if adding new languages, make sure settings.template.json is updated too.
5357
"plugins": [
54-
"https://plugins.dprint.dev/typescript-0.88.1.wasm",
55-
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe",
56-
"https://plugins.dprint.dev/json-0.17.4.wasm"
58+
"https://plugins.dprint.dev/typescript-0.88.3.wasm",
59+
"https://plugins.dprint.dev/json-0.19.0.wasm",
60+
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
5761
]
5862
}

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ body:
1313
1414
List them here so people in the future can find this one more easily.
1515
placeholder: |
16-
List of keywords you searched for before creating this issue.
17-
Write them down here so that others can find this bug more easily and help provide feedback.
16+
List of keywords you searched for before creating this issue. Write them down here so that others can find this bug more easily and help provide feedback.
1817
1918
e.g. "function inference any", "jsx attribute spread", "move to file duplicate imports", "discriminated union inference", "ts2822"
2019
validations:
@@ -52,7 +51,6 @@ body:
5251
5352
This should have the same code as the code snippet below, and use whichever settings are relevant to your report.
5453
55-
5654
As a last resort, you can link to a repo, but these will be slower for us to investigate.
5755
placeholder: 'Playground link with relevant code: https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA'
5856
validations:
@@ -63,6 +61,7 @@ body:
6361
label: 💻 Code
6462
description: |
6563
Please post the relevant code sample here as well.
64+
6665
This code and the Playground code should be the same, do not use separate examples.
6766
6867
We can quickly address your report if:
@@ -72,6 +71,7 @@ body:
7271
- The incorrectness of the behavior is readily apparent from reading the sample.
7372
7473
Reports are slower to investigate if:
74+
7575
- We have to pare too much extraneous code.
7676
- We have to clone a large repo and validate that the problem isn't elsewhere.
7777
- The sample is confusing or doesn't clearly demonstrate what's wrong.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ body:
1515
1616
The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests
1717
placeholder: |
18-
List of keywords you searched for before creating this issue.
19-
Write them down here so that others can find this suggestion more easily and help provide feedback.
18+
List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.
2019
2120
e.g. "isArray readonly", "regex string types", "json const assertion import"
2221
validations:
@@ -26,9 +25,7 @@ body:
2625
attributes:
2726
label: '✅ Viability Checklist'
2827
description: |
29-
Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
30-
We always recommend reviewing the TypeScript design goals before investing time writing
31-
a proposal for ideas outside the scope of the project.
28+
Suggestions that don't meet all these criteria are very, very unlikely to be accepted. We always recommend reviewing the TypeScript design goals before investing time writing a proposal for ideas outside the scope of the project.
3229
3330
My suggestion meets the following guidelines.
3431
options:
@@ -40,6 +37,8 @@ body:
4037
required: true
4138
- label: This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
4239
required: true
40+
- label: "This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types"
41+
required: true
4342
- label: 'This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals'
4443
required: true
4544
- type: textarea
@@ -54,8 +53,7 @@ body:
5453
attributes:
5554
label: '📃 Motivating Example'
5655
description: |
57-
If you were announcing this feature in a blog post, what's a short
58-
explanation that shows a developer why this feature improves the language?
56+
If you were announcing this feature in a blog post, what's a short explanation that shows a developer why this feature improves the language?
5957
validations:
6058
required: true
6159
- type: textarea

.github/ISSUE_TEMPLATE/lib_change.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Library change'
2-
description: 'Fix or improve issues with built-in type definitions like `lib.dom.d.ts`, `lib.es6.d.ts`, etc.'
2+
description: 'Fix or improve issues with built-in type definitions like `lib.es6.d.ts`, etc.'
33
body:
44
- type: markdown
55
attributes:
@@ -12,18 +12,13 @@ body:
1212
* Array methods - see https://github.com/microsoft/TypeScript/issues/36554
1313
* `parseInt`, `parseFloat`, `isFinite`, `isNaN`, etc. - see https://github.com/microsoft/TypeScript/issues/4002
1414
15-
16-
The DOM lib is maintained elsewhere and you can skip a step by filing issues/PRs for the DOM at that repo.
17-
See https://github.com/microsoft/TypeScript-DOM-lib-generator
15+
The DOM lib is maintained elsewhere and you can skip a step by filing issues/PRs for the DOM at that repo. See https://github.com/microsoft/TypeScript-DOM-lib-generator
1816
- type: markdown
1917
attributes:
2018
value: |
21-
If you're missing common new methods like `Array.includes`, you may have a misconfigured project.
22-
Try setting `lib: "es2020"` and checking whether the type you want is present.
23-
You can diagnose further by running `tsc` with `--listFilesOnly` or `--showConfig`.
19+
If you're missing common new methods like `Array.includes`, you may have a misconfigured project. Try setting `lib: "es2020"` and checking whether the type you want is present. You can diagnose further by running `tsc` with `--listFilesOnly` or `--showConfig`.
2420
25-
Conversely, if you are seeing built-in methods you expect to *not* see, check your 'lib' setting or review your dependencies for lib/reference directives that might be polluting
26-
your global scope. This is common when using the 'node' type library. See https://github.com/microsoft/TypeScript/issues/40184
21+
Conversely, if you are seeing built-in methods you expect to *not* see, check your 'lib' setting or review your dependencies for lib/reference directives that might be polluting your global scope. This is common when using the 'node' type library. See https://github.com/microsoft/TypeScript/issues/40184
2722
- type: input
2823
id: compilation_target
2924
attributes:
@@ -58,5 +53,4 @@ body:
5853
attributes:
5954
label: 'Documentation Link'
6055
description: |
61-
Link to relevant documentation (e.g. MDN, W3C, ECMAScript Spec) to consult for this property.
62-
Note that lib.dom.d.ts intentionally does not include browser-specific extensions or early experimental features.
56+
Link to relevant documentation (e.g. MDN, W3C, ECMAScript Spec) to consult for this property. Note that lib.dom.d.ts intentionally does not include browser-specific extensions or early experimental features.

.github/ISSUE_TEMPLATE/module_resolution.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ body:
2727
4. The configuration of the target module
2828
5. A difference in runtime behavior
2929
30-
You will also be required to post a cloneable repository.
31-
This repo must involve running `tsc`, not a third-party tool (e.g. vue-tsc, ngc, expo, ...)
30+
You will also be required to post a cloneable repository. This repo must involve running `tsc`, not a third-party tool (e.g. vue-tsc, ngc, expo, ...)
3231
3332
- type: input
3433
id: repo-url

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: 'github-actions'
9+
directory: '/'
10+
schedule:
11+
interval: 'weekly'
12+
groups:
13+
github-actions:
14+
patterns:
15+
- '*'

.github/pr_owners.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ jakebailey
1313
DanielRosenwasser
1414
navya9singh
1515
iisaduan
16+
dependabot

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2121
with:
2222
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
23-
- uses: actions/setup-node@v3
23+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
2424

2525
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
2626
run: |

.github/workflows/ci.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
name: Test Node ${{ matrix.node-version }} with --bundle=${{ matrix.bundle }}
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4343
- name: Use node version ${{ matrix.node-version }}
44-
uses: actions/setup-node@v3
44+
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747
check-latest: true
@@ -55,8 +55,8 @@ jobs:
5555
runs-on: ubuntu-latest
5656

5757
steps:
58-
- uses: actions/checkout@v3
59-
- uses: actions/setup-node@v3
58+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
59+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
6060
with:
6161
node-version: '*'
6262
check-latest: true
@@ -69,14 +69,14 @@ jobs:
6969
runs-on: ubuntu-latest
7070

7171
steps:
72-
- uses: actions/checkout@v3
73-
- uses: actions/setup-node@v3
72+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
73+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
7474
with:
7575
node-version: '*'
7676
check-latest: true
7777
- run: npm ci
7878

79-
- uses: actions/cache@v3
79+
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
8080
with:
8181
path: ~/.cache/dprint
8282
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
@@ -90,8 +90,8 @@ jobs:
9090
runs-on: ubuntu-latest
9191

9292
steps:
93-
- uses: actions/checkout@v3
94-
- uses: actions/setup-node@v3
93+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
94+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
9595
with:
9696
node-version: '*'
9797
check-latest: true
@@ -107,8 +107,8 @@ jobs:
107107
runs-on: ubuntu-latest
108108

109109
steps:
110-
- uses: actions/checkout@v3
111-
- uses: actions/setup-node@v3
110+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
111+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
112112
with:
113113
node-version: '*'
114114
check-latest: true
@@ -121,9 +121,9 @@ jobs:
121121
runs-on: ubuntu-latest
122122

123123
steps:
124-
- uses: actions/checkout@v3
124+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125125

126-
- uses: actions/setup-node@v3
126+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
127127
with:
128128
node-version: '*'
129129
check-latest: true
@@ -162,16 +162,16 @@ jobs:
162162
if: github.event_name == 'pull_request'
163163

164164
steps:
165-
- uses: actions/checkout@v3
165+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
166166
with:
167167
path: pr
168168

169-
- uses: actions/checkout@v3
169+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
170170
with:
171171
path: base
172172
ref: ${{ github.base_ref }}
173173

174-
- uses: actions/setup-node@v3
174+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
175175
with:
176176
node-version: '*'
177177
check-latest: true
@@ -204,8 +204,8 @@ jobs:
204204
runs-on: ubuntu-latest
205205

206206
steps:
207-
- uses: actions/checkout@v3
208-
- uses: actions/setup-node@v3
207+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
208+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
209209
with:
210210
node-version: '*'
211211
check-latest: true
@@ -221,8 +221,8 @@ jobs:
221221
runs-on: ubuntu-latest
222222

223223
steps:
224-
- uses: actions/checkout@v3
225-
- uses: actions/setup-node@v3
224+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
225+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
226226
with:
227227
node-version: '*'
228228
check-latest: true
@@ -241,8 +241,8 @@ jobs:
241241
runs-on: ubuntu-latest
242242

243243
steps:
244-
- uses: actions/checkout@v3
245-
- uses: actions/setup-node@v3
244+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
245+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
246246
with:
247247
node-version: '*'
248248
check-latest: true

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v2
49+
uses: github/codeql-action/init@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
5050
with:
5151
config-file: ./.github/codeql/codeql-configuration.yml
5252
# Override language selection by uncommenting this and choosing your languages
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below).
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
59+
uses: github/codeql-action/autobuild@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
73+
uses: github/codeql-action/analyze@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9

0 commit comments

Comments
 (0)