Skip to content

Commit 8f45373

Browse files
committed
Rename simplifyIndexedAccessType->getSimplifiedIndexedAccessType
1 parent 0b23811 commit 8f45373

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)