Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/stream/main/index.ts>Reducer.CombineResult

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Reducer.CombineResult
import { type Reducer } from "https://deno.land/x/rimbu@1.2.0/stream/main/index.ts";
const { CombineResult } = Reducer;

Type defining the result type of a reducer combination for a given shape.

definition: S extends readonly CombineShape[] ? 0 extends S["length"] ? never : [K in keyof S]: S[K] extends CombineShape ? CombineResult<S[K]> : never : S extends { [key: string]: CombineShape; } ? [K in keyof S]: CombineResult<S[K]> : S extends Reducer<unknown, infer R> ? R : never