Type alias ReducerOutput<Iterable, Output>
ReducerOutput<Iterable, Output>: Iterable extends IsomorphicIterable<infer Item> ? Iterable extends ReadOnlyAsyncIterable<Item> ? Promise<Output> : Output : never
Type Parameters
-
Iterable extends IsomorphicIterable
-
Output
IsomorphicIterable
reducer function optional return value.Remarks
When reducing an
IsomorphicIterable
with a reducer function, the output can be either aPromise
or a regular value depending on the input.See
ReadOnlyAsyncIterable
Template
Type of the items in the
IsomorphicIterable
.