fix(stream): type empty-choice collector events

This commit is contained in:
diegosouzapw
2026-08-09 18:47:22 -03:00
parent f3ba480c08
commit 3ff25a484f

View File

@@ -20,8 +20,15 @@
import { buildErrorBody } from "./error.ts";
import { buildStreamSummaryFromEvents } from "./streamPayloadCollector.ts";
type StructuredSSEEventLike = {
index: number;
timestamp?: string;
event?: string;
data: unknown;
};
type StructuredSSECollectorLike = {
getEvents: () => unknown[];
getEvents: () => StructuredSSEEventLike[];
build: (summary?: unknown, opts?: { includeEvents?: boolean }) => unknown;
};