import { type AsyncReducer } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { CombineResult } = AsyncReducer;
Type defining the result type of an async reducer combination for a given shape.
Type Parameters
S extends AsyncReducer.CombineShape<any>
definition: S extends readonly AsyncReducer.CombineShape[] ? 0 extends S["length"] ? never : [K in keyof S]: S[K] extends AsyncReducer.CombineShape ? AsyncReducer.CombineResult<S[K]> : never : S extends { [key: string]: AsyncReducer.CombineShape; } ? [K in keyof S]: AsyncReducer.CombineResult<S[K]> : S extends AsyncReducer.Accept<unknown, infer R> ? R : never
Type Parameters
S extends AsyncReducer.CombineShape<any>
definition: S extends readonly AsyncReducer.CombineShape[] ? 0 extends S["length"] ? never : [K in keyof S]: S[K] extends AsyncReducer.CombineShape ? AsyncReducer.CombineResult<S[K]> : never : S extends { [key: string]: AsyncReducer.CombineShape; } ? [K in keyof S]: AsyncReducer.CombineResult<S[K]> : S extends AsyncReducer.Accept<unknown, infer R> ? R : never