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) {
23112
23107
const propType = getTypeOfPropertyOfType(type, "" + index as __String);
23113
23108
if (propType) {
@@ -29067,7 +29062,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
29067
29062
// type of T.
29068
29063
function getContextualTypeForElementExpression(arrayContextualType: Type | undefined, index: number): Type | undefined {
29069
29064
return arrayContextualType && (
29070
-
index >= 0 && getTypeOfPropertyOfContextualType(arrayContextualType, "" + index as __String) ||
29065
+
index >= 0 && getTypeOfPropertyOfContextualType(filterType(arrayContextualType, t => !!getIndexTypeOfType(t, numberType) || isAssignableToAvailableAnyIterable(t)), "" + index as __String) ||
0 commit comments