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

Function getMinTypeArgumentCount

test/fixtures/snapshot/typescript.js:59585–59595  ·  view source on GitHub ↗

* Gets the minimum number of type arguments needed to satisfy all non-optional type * parameters.

(typeParameters)

Source from the content-addressed store, hash-verified

59583 * parameters.
59584 */
59585 function getMinTypeArgumentCount(typeParameters) {
59586 var minTypeArgumentCount = 0;
59587 if (typeParameters) {
59588 for (var i = 0; i < typeParameters.length; i++) {
59589 if (!hasTypeParameterDefault(typeParameters[i])) {
59590 minTypeArgumentCount = i + 1;
59591 }
59592 }
59593 }
59594 return minTypeArgumentCount;
59595 }
59596 function fillMissingTypeArguments(typeArguments, typeParameters, minTypeArgumentCount, isJavaScriptImplicitAny) {
59597 var numTypeParameters = ts.length(typeParameters);
59598 if (!numTypeParameters) {

Calls 1

hasTypeParameterDefaultFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…