MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isHookEvent

Function isHookEvent

src/types/hooks.ts:22–24  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

20import type { AttributionState } from '../utils/commitAttribution.js'
21
22export function isHookEvent(value: string): value is HookEvent {
23 return HOOK_EVENTS.includes(value as HookEvent)
24}
25
26// Prompt elicitation protocol types. The `prompt` key acts as discriminator
27// (mirroring the {async:true} pattern), with the id as its value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected