Commit c456bbd
authored
Support re-aliasing of type alias instantiations (#42284)
* New aliases for type alias instantiations
* New aliases for conditional, mapped, and anonymous object type instantiations
* Accept new baselines
* Fix issues with re-aliasing
* Accept new baselines1 parent 1ecf228 commit c456bbdCopy full SHA for c456bbd
86 files changed
+495-438Lines changed: 495 additions & 438 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests/baselines/reference
- tsbuild
- declarationEmit/initial-build
- moduleSpecifiers/initial-build
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+66-42Lines changed: 66 additions & 42 deletions
Large diffs are not rendered by default.
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4745 | 4745 | |
4746 | 4746 | |
4747 | 4747 | |
| 4748 | + |
| 4749 | + |
4748 | 4750 | |
4749 | 4751 | |
4750 | 4752 | |
|
Collapse file
tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.types+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
| ||
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | | - |
| 59 | + |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
|
Collapse file
tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.js+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
| 63 | + |
63 | 64 | |
64 | | - |
65 | | - |
66 | | - |
| 65 | + |
67 | 66 | |
Collapse file
tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.types+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
|
Collapse file
tests/baselines/reference/circularlyConstrainedMappedTypeContainingConditionalNoInfiniteInstantiationDepth.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/circularlyConstrainedMappedTypeContainingConditionalNoInfiniteInstantiationDepth.types+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
113 | 113 | |
114 | 114 | |
115 | 115 | |
116 | | - |
| 116 | + |
117 | 117 | |
118 | 118 | |
119 | 119 | |
|
Collapse file
tests/baselines/reference/circularlySimplifyingConditionalTypesNoCrash.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/circularlySimplifyingConditionalTypesNoCrash.types+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
|
Collapse file
tests/baselines/reference/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.types+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
|
Collapse file
tests/baselines/reference/conditionalTypeDiscriminatingLargeUnionRegularTypeFetchingSpeedReasonable.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/conditionalTypeDiscriminatingLargeUnionRegularTypeFetchingSpeedReasonable.types+2-2Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Collapse file
tests/baselines/reference/conditionalTypes1.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/conditionalTypes1.errors.txt+34-14Lines changed: 34 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
21 | 21 | |
22 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
23 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
24 | 34 | |
25 | 35 | |
26 | 36 | |
| ||
52 | 62 | |
53 | 63 | |
54 | 64 | |
55 | | - |
| 65 | + |
56 | 66 | |
57 | 67 | |
58 | 68 | |
| ||
185 | 195 | |
186 | 196 | |
187 | 197 | |
188 | | - |
189 | | - |
| 198 | + |
| 199 | + |
190 | 200 | |
191 | 201 | |
192 | | - |
193 | | - |
| 202 | + |
| 203 | + |
194 | 204 | |
195 | 205 | |
196 | 206 | |
197 | | - |
| 207 | + |
198 | 208 | |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
199 | 215 | |
200 | 216 | |
201 | 217 | |
202 | | - |
| 218 | + |
203 | 219 | |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
204 | 224 | |
205 | 225 | |
206 | 226 | |
| ||
398 | 418 | |
399 | 419 | |
400 | 420 | |
401 | | - |
| 421 | + |
402 | 422 | |
403 | 423 | |
404 | 424 | |
|
0 commit comments