We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3519af0 commit cec8d52Copy full SHA for cec8d52
src/compiler/checker.ts
@@ -24755,7 +24755,7 @@ namespace ts {
24755
return parent.kind === SyntaxKind.PropertyAccessExpression ||
24756
parent.kind === SyntaxKind.CallExpression && (parent as CallExpression).expression === node ||
24757
parent.kind === SyntaxKind.ElementAccessExpression && (parent as ElementAccessExpression).expression === node &&
24758
- !(isGenericTypeWithoutNullableConstraint(type) && isGenericIndexType(getTypeOfExpression((parent as ElementAccessExpression).argumentExpression)));
+ !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression((parent as ElementAccessExpression).argumentExpression)));
24759
}
24760
24761
function isGenericTypeWithUnionConstraint(type: Type) {
0 commit comments