(indexType, limit)
| 62391 | return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType); |
| 62392 | } |
| 62393 | function indexTypeLessThan(indexType, limit) { |
| 62394 | return everyType(indexType, function (t) { |
| 62395 | if (t.flags & 384 /* TypeFlags.StringOrNumberLiteral */) { |
| 62396 | var propName = getPropertyNameFromType(t); |
| 62397 | if (ts.isNumericLiteralName(propName)) { |
| 62398 | var index = +propName; |
| 62399 | return index >= 0 && index < limit; |
| 62400 | } |
| 62401 | } |
| 62402 | return false; |
| 62403 | }); |
| 62404 | } |
| 62405 | function getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) { |
| 62406 | if (accessFlags === void 0) { accessFlags = 0 /* AccessFlags.None */; } |
| 62407 | if (objectType === wildcardType || indexType === wildcardType) { |
no test coverage detected
searching dependent graphs…