(type, index, endSkipCount)
| 61086 | } |
| 61087 | } |
| 61088 | function sliceTupleType(type, index, endSkipCount) { |
| 61089 | if (endSkipCount === void 0) { endSkipCount = 0; } |
| 61090 | var target = type.target; |
| 61091 | var endIndex = getTypeReferenceArity(type) - endSkipCount; |
| 61092 | return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(ts.emptyArray) : |
| 61093 | createTupleType(getTypeArguments(type).slice(index, endIndex), target.elementFlags.slice(index, endIndex), |
| 61094 | /*readonly*/ false, target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex)); |
| 61095 | } |
| 61096 | function getKnownKeysOfTupleType(type) { |
| 61097 | return getUnionType(ts.append(ts.arrayOf(type.target.fixedLength, function (i) { return getStringLiteralType("" + i); }), getIndexType(type.target.readonly ? globalReadonlyArrayType : globalArrayType))); |
| 61098 | } |
no test coverage detected
searching dependent graphs…