Are you an LLM? You can read better optimized documentation at /documentation/api/react/type-aliases/StreamReduce.md for this page in Markdown format
ws-asyncapi API / react / StreamReduce
Type Alias: StreamReduce<Item, Acc>
StreamReduce<
Item,Acc> = {reduce:"append";max?:number; } | {reduce: (acc,item) =>Acc;initial:Acc; }
Defined in: node_modules/@ws-asyncapi/query-core/dist/index.d.ts:79
How a stream's yielded items are reduced into the observed value.
Type Parameters
Item
Item
Acc
Acc