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.
Type Parameters
S extends CombineShape
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