(hook: { if?: string })
| 1867 | // Helper to extract the `if` condition from a hook for dedup keys. |
| 1868 | // Hooks with different `if` conditions are distinct even if otherwise identical. |
| 1869 | const getIfCondition = (hook: { if?: string }): string => hook.if ?? '' |
| 1870 | |
| 1871 | const uniqueCommandHooks = Array.from( |
| 1872 | new Map( |