MCPcopy Create free account
hub / github.com/TanStack/ai / isStreamEvent

Function isStreamEvent

testing/e2e/tests/mcp-apps.spec.ts:53–60  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

51}
52
53function isStreamEvent(value: unknown): value is StreamEvent {
54 return (
55 typeof value === 'object' &&
56 value !== null &&
57 'type' in value &&
58 typeof value.type === 'string'
59 )
60}
61
62// The JSON shape the call handler returns (mirrors createMcpAppCallHandler).
63type CallHandlerResponse = {

Callers 1

parseSseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected