(hook: T)
| 9 | */ |
| 10 | // biome-ignore lint/complexity/noBannedTypes: Function type needed here |
| 11 | export function getHookHandler<T extends ObjectHook<Function>>(hook: T): HookHandler<T> { |
| 12 | return (typeof hook === 'object' ? hook.handler : hook) as HookHandler<T>; |
| 13 | } |
no outgoing calls
no test coverage detected