mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 01:32:22 +03:00
fix(stream): type empty-choice collector events
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user