UNPKG

@codibre/fluent-iterable

Version:

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

6 lines (5 loc) 592 B
import type { AnyIterable } from 'augmentative-iterable'; import type { AsyncReducer } from '../types'; import type { ToObjectChainIngredients } from './ingredients'; export declare function chainRecipeFactory(reduce: Function, ing: Omit<ToObjectChainIngredients, 'toObject'>, toDictFunc: Function): <T, R>(this: AnyIterable<any>, initial: () => R, reducer: AsyncReducer<T, R>, ...keys: string[]) => any; export declare function toObjectChainReduceRecipe(ing: ToObjectChainIngredients): <T, R>(this: AnyIterable<any>, initial: () => R, reducer: AsyncReducer<T, R>, ...keys: string[]) => any;