(signature)
| 77592 | // the parameter count of (x: number, ...args: [number, ...string[], boolean])) is also 3. In the |
| 77593 | // latter example, the effective rest type is [...string[], boolean]. |
| 77594 | function getParameterCount(signature) { |
| 77595 | var length = signature.parameters.length; |
| 77596 | if (signatureHasRestParameter(signature)) { |
| 77597 | var restType = getTypeOfSymbol(signature.parameters[length - 1]); |
| 77598 | if (isTupleType(restType)) { |
| 77599 | return length + restType.target.fixedLength - (restType.target.hasRestElement ? 0 : 1); |
| 77600 | } |
| 77601 | } |
| 77602 | return length; |
| 77603 | } |
| 77604 | function getMinArgumentCount(signature, flags) { |
| 77605 | var strongArityForUntypedJS = flags & 1 /* MinArgumentCountFlags.StrongArityForUntypedJS */; |
| 77606 | var voidIsNonOptional = flags & 2 /* MinArgumentCountFlags.VoidIsNonOptional */; |
no test coverage detected
searching dependent graphs…