Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/mod.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/core/mod.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