(type)
| 60057 | return ts.emptyArray; |
| 60058 | } |
| 60059 | function isValidIndexKeyType(type) { |
| 60060 | return !!(type.flags & (4 /* TypeFlags.String */ | 8 /* TypeFlags.Number */ | 4096 /* TypeFlags.ESSymbol */)) || isPatternLiteralType(type) || |
| 60061 | !!(type.flags & 2097152 /* TypeFlags.Intersection */) && !isGenericType(type) && ts.some(type.types, isValidIndexKeyType); |
| 60062 | } |
| 60063 | function getConstraintDeclaration(type) { |
| 60064 | return ts.mapDefined(ts.filter(type.symbol && type.symbol.declarations, ts.isTypeParameterDeclaration), ts.getEffectiveConstraintOfTypeParameter)[0]; |
| 60065 | } |
no test coverage detected
searching dependent graphs…