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

Function tryGetRestTypeOfSignature

test/fixtures/snapshot/typescript.js:59923–59930  ·  view source on GitHub ↗
(signature)

Source from the content-addressed store, hash-verified

59921 return tryGetRestTypeOfSignature(signature) || anyType;
59922 }
59923 function tryGetRestTypeOfSignature(signature) {
59924 if (signatureHasRestParameter(signature)) {
59925 var sigRestType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);
59926 var restType = isTupleType(sigRestType) ? getRestTypeOfTupleType(sigRestType) : sigRestType;
59927 return restType && getIndexTypeOfType(restType, numberType);
59928 }
59929 return undefined;
59930 }
59931 function getSignatureInstantiation(signature, typeArguments, isJavascript, inferredTypeParameters) {
59932 var instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, fillMissingTypeArguments(typeArguments, signature.typeParameters, getMinTypeArgumentCount(signature.typeParameters), isJavascript));
59933 if (inferredTypeParameters) {

Callers 1

getRestTypeOfSignatureFunction · 0.85

Calls 5

getTypeOfSymbolFunction · 0.85
isTupleTypeFunction · 0.85
getRestTypeOfTupleTypeFunction · 0.85
getIndexTypeOfTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…