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

Function isSyncHookJSONOutput

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

Source from the content-addressed store, hash-verified

180
181// Type guard function to check if response is sync
182export function isSyncHookJSONOutput(
183 json: HookJSONOutput,
184): json is SyncHookJSONOutput {
185 return !('async' in json && json.async === true)
186}
187
188// Type guard function to check if response is async
189export function isAsyncHookJSONOutput(

Callers 3

executeHooksFunction · 0.85
executeHooksOutsideREPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected