File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6463,7 +6463,7 @@ namespace ts {
6463
6463
}
6464
6464
6465
6465
function getConstraintOfIndexedAccess(type: IndexedAccessType) {
6466
- const transformed = simplifyIndexedAccessType (type);
6466
+ const transformed = getSimplifiedIndexedAccessType (type);
6467
6467
if (transformed) {
6468
6468
return transformed;
6469
6469
}
@@ -6544,7 +6544,7 @@ namespace ts {
6544
6544
return stringType;
6545
6545
}
6546
6546
if (t.flags & TypeFlags.IndexedAccess) {
6547
- const transformed = simplifyIndexedAccessType (<IndexedAccessType>t);
6547
+ const transformed = getSimplifiedIndexedAccessType (<IndexedAccessType>t);
6548
6548
if (transformed) {
6549
6549
return getBaseConstraint(transformed);
6550
6550
}
@@ -8356,7 +8356,7 @@ namespace ts {
8356
8356
8357
8357
// Transform an indexed access to a simpler form, if possible. Return the simpler form, or return
8358
8358
// undefined if no transformation is possible.
8359
- function simplifyIndexedAccessType (type: IndexedAccessType): Type {
8359
+ function getSimplifiedIndexedAccessType (type: IndexedAccessType): Type {
8360
8360
const objectType = type.objectType;
8361
8361
// Given an indexed access type T[K], if T is an intersection containing one or more generic types and one or
8362
8362
// more object types with only a string index signature, e.g. '(U & V & { [x: string]: D })[K]', return a
You can’t perform that action at this time.
0 commit comments