MCPcopy Index your code
hub / github.com/nodejs/node / getKnownKeysOfTupleType

Function getKnownKeysOfTupleType

test/fixtures/snapshot/typescript.js:61096–61098  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

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 }
61099 // Return count of starting consecutive tuple elements of the given kind(s)
61100 function getStartElementCount(type, flags) {
61101 var index = ts.findIndex(type.elementFlags, function (f) { return !(f & flags); });

Callers 2

getLowerBoundOfKeyTypeFunction · 0.85
structuredTypeRelatedToFunction · 0.85

Calls 4

getUnionTypeFunction · 0.85
getStringLiteralTypeFunction · 0.85
getIndexTypeFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected