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