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