MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / getHookHandler

Function getHookHandler

packages/vite/src/bridge/plugins.ts:11–13  ·  view source on GitHub ↗
(hook: T)

Source from the content-addressed store, hash-verified

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

Callers 4

wrapEnvironmentResolveIdFunction · 0.90
wrapEnvironmentLoadFunction · 0.90
wrapEnvironmentTransformFunction · 0.90
wrapEnvironmentHookFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected