Skip to main content
Module

x/rimbu/mod.ts>Reducer.CombineResult

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

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

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