MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isAsyncHookJSONOutput

Function isAsyncHookJSONOutput

src/types/hooks.ts:189–193  ·  view source on GitHub ↗
(
  json: HookJSONOutput,
)

Source from the content-addressed store, hash-verified

187
188// Type guard function to check if response is async
189export function isAsyncHookJSONOutput(
190 json: HookJSONOutput,
191): json is AsyncHookJSONOutput {
192 return 'async' in json && json.async === true
193}
194
195// Compile-time assertion that SDK and Zod types match
196import type { IsEqual } from 'type-fest'

Callers 5

execCommandHookFunction · 0.85
executeHooksFunction · 0.85
executeHooksOutsideREPLFunction · 0.85
executeHookCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected