File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6463,7 +6463,7 @@ namespace ts {
64636463 }
64646464
64656465 function getConstraintOfIndexedAccess(type: IndexedAccessType) {
6466- const transformed = simplifyIndexedAccessType (type);
6466+ const transformed = getSimplifiedIndexedAccessType (type);
64676467 if (transformed) {
64686468 return transformed;
64696469 }
@@ -6544,7 +6544,7 @@ namespace ts {
65446544 return stringType;
65456545 }
65466546 if (t.flags & TypeFlags.IndexedAccess) {
6547- const transformed = simplifyIndexedAccessType (<IndexedAccessType>t);
6547+ const transformed = getSimplifiedIndexedAccessType (<IndexedAccessType>t);
65486548 if (transformed) {
65496549 return getBaseConstraint(transformed);
65506550 }
@@ -8356,7 +8356,7 @@ namespace ts {
83568356
83578357 // Transform an indexed access to a simpler form, if possible. Return the simpler form, or return
83588358 // undefined if no transformation is possible.
8359- function simplifyIndexedAccessType (type: IndexedAccessType): Type {
8359+ function getSimplifiedIndexedAccessType (type: IndexedAccessType): Type {
83608360 const objectType = type.objectType;
83618361 // Given an indexed access type T[K], if T is an intersection containing one or more generic types and one or
83628362 // 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