Skip to content

Commit b555ed0

Browse files
Copilotintel352
andauthored
fix: use SSEEvent type in onEvent cast instead of inline type shape (#18)
* Initial plan * fix: use SSEEvent type in onEvent cast instead of inline type shape Co-authored-by: intel352 <77607+intel352@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
1 parent f78efc3 commit b555ed0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/utils/sse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { SSEEvent } from '../types';
44
export function connectSSE(onEvent: (event: SSEEvent) => void): EventSource {
55
const es = sharedConnectSSE({
66
url: '/events',
7-
onEvent: onEvent as (event: { type: string; data: unknown; [key: string]: unknown }) => void,
7+
onEvent: onEvent as (event: SSEEvent) => void,
88
onError: () => {
99
// Suppress SSE connection errors in console — the shared library handles reconnection
1010
},

0 commit comments

Comments
 (0)