Type alias ReducerOutput<Iterable, Output>

ReducerOutput<Iterable, Output>: Iterable extends IsomorphicIterable<infer Item>
    ? Iterable extends ReadOnlyAsyncIterable<Item>
        ? Promise<Output>
        : Output
    : never

IsomorphicIterable reducer function optional return value.

Remarks

When reducing an IsomorphicIterable with a reducer function, the output can be either a Promise or a regular value depending on the input.

See

ReadOnlyAsyncIterable

Template

Type of the items in the IsomorphicIterable.

Type Parameters

  • Iterable extends IsomorphicIterable

  • Output

    Type of the output.