You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function getTupleElementType(type: Type, index: number) {
23125
23130
const propType = getTypeOfPropertyOfType(type, "" + index as __String);
23126
23131
if (propType) {
@@ -29080,7 +29085,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
29080
29085
// type of T.
29081
29086
function getContextualTypeForElementExpression(arrayContextualType: Type | undefined, index: number): Type | undefined {
29082
29087
return arrayContextualType && (
29083
-
index >= 0 && getTypeOfPropertyOfContextualType(filterType(arrayContextualType, t => !!getIndexTypeOfType(t, numberType) || isAssignableToAvailableAnyIterable(t)), "" + index as __String) ||
29088
+
index >= 0 && getTypeOfPropertyOfContextualType(arrayContextualType, "" + index as __String) ||
0 commit comments