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

Function isSDKMessage

src/bridge/bridgeMessaging.ts:36–43  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

34 * discriminated union on `type` — validating the discriminant is
35 * sufficient for the predicate; callers narrow further via the union. */
36export function isSDKMessage(value: unknown): value is SDKMessage {
37 return (
38 value !== null &&
39 typeof value === 'object' &&
40 'type' in value &&
41 typeof value.type === 'string'
42 )
43}
44
45/** Type predicate for control_response messages from the server. */
46export function isSDKControlResponse(

Callers 1

handleIngressMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected