Skip to content

Interface: UseServingStreamResult\<T, TBody\>

T = unknown

TBody = Record<string, unknown>

chunks: T[]

Accumulated chunks received so far.


error: string | null

Error message, if any.


reset: () => void

Reset chunks and abort any active stream.

void


stream: (overrideBody?) => void

Trigger the streaming invocation. Pass an optional body override for this invocation.

TBody

void


streaming: boolean

Whether streaming is in progress.