* Gets the minimum number of type arguments needed to satisfy all non-optional type * parameters.
(typeParameters)
| 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) { |
no test coverage detected
searching dependent graphs…