Convenience: how many hooks would dispatch for this event/tool combination.
(event: HookEvent, toolName?: string)
| 57 | |
| 58 | /** Convenience: how many hooks would dispatch for this event/tool combination. */ |
| 59 | countMatching(event: HookEvent, toolName?: string): number { |
| 60 | return this.matching(event, toolName).length; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Dispatch an event. Hooks run sequentially in declaration order so users have |