(fn: FunctionNode)
| 3630 | } |
| 3631 | |
| 3632 | const parameterCount = (fn: FunctionNode): number => { |
| 3633 | let count = 0 |
| 3634 | for (const param of runtimeParamsOf(fn)) { |
| 3635 | if (param.type === "AssignmentPattern" || param.type === "RestElement") |
| 3636 | break |
| 3637 | count++ |
| 3638 | } |
| 3639 | return count |
| 3640 | } |
| 3641 | |
| 3642 | // e.g. a callback passed to a library, which only arktype can define with |
| 3643 | // what it's passed |
no test coverage detected