* Build a map of {hookType: count} from matched hooks.
(hooks: MatchedHook[])
| 1482 | * Build a map of {hookType: count} from matched hooks. |
| 1483 | */ |
| 1484 | function getHookTypeCounts(hooks: MatchedHook[]): Record<string, number> { |
| 1485 | const counts: Record<string, number> = {} |
| 1486 | for (const h of hooks) { |
| 1487 | counts[h.hook.type] = (counts[h.hook.type] || 0) + 1 |
| 1488 | } |
| 1489 | return counts |
| 1490 | } |
| 1491 | |
| 1492 | function getHooksConfig( |
| 1493 | appState: AppState | undefined, |
no outgoing calls
no test coverage detected