(hook: { if?: string })
| 1731 | // Helper to extract the `if` condition from a hook for dedup keys. |
| 1732 | // Hooks with different `if` conditions are distinct even if otherwise identical. |
| 1733 | const getIfCondition = (hook: { if?: string }): string => hook.if ?? '' |
| 1734 | |
| 1735 | const uniqueCommandHooks = Array.from( |
| 1736 | new Map( |