@codibre/fluent-iterable
Version:
Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).
8 lines (7 loc) • 434 B
TypeScript
import { AnyMapper } from '../types-internal';
import { AnyIterable } from 'augmentative-iterable';
import { BasicReduceIngredients } from './ingredients';
import { Choose } from '../types';
export declare function toObjectRecipe({ reduce, resolver }: BasicReduceIngredients): <T, V, R extends {
[key: string]: V;
}>(this: AnyIterable<T>, baseKeySelector: AnyMapper<T>, baseValueSelector?: AnyMapper<T>, choose?: Choose<T>) => R;