UNPKG

fast-iterable

Version:

Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).

7 lines (6 loc) 615 B
import { AnyIterable } from 'augmentative-iterable'; import { AnyMapper, FunctionAnyMapper } from '../types-internal'; import { DistinctIngredients } from './ingredients'; import { Choose } from '../types'; export declare function chooseToMapRecipe({ forEach, resolver }: DistinctIngredients): <T>(this: AnyIterable<T>, getKey: FunctionAnyMapper<any>, mapper: FunctionAnyMapper<any>, choose?: Choose<T> | undefined) => any; export declare function toMapRecipe(ingredients: DistinctIngredients): <T>(this: AnyIterable<T>, getKey: AnyMapper<T>, mapper: AnyMapper<T>, getReduced?: Choose<unknown> | undefined) => any;