1 | import { IterableX } from '../../iterable/iterablex';
|
2 | import { GroupedIterable } from '../../iterable/groupby';
|
3 | export declare function groupByProto<TSource, TKey>(this: IterableX<TSource>, keySelector: (value: TSource) => TKey): IterableX<GroupedIterable<TKey, TSource>>;
|
4 | export declare function groupByProto<TSource, TKey, TValue>(this: IterableX<TSource>, keySelector: (value: TSource) => TKey, elementSelector?: (value: TSource) => TValue): IterableX<GroupedIterable<TKey, TValue>>;
|
5 | export declare function groupByProto<TSource, TKey, TValue, TResult>(this: IterableX<TSource>, keySelector: (value: TSource) => TKey | Promise<TKey>, elementSelector?: (value: TSource) => TValue | Promise<TValue>, resultSelector?: (key: TKey, values: Iterable<TValue>) => TResult): IterableX<TResult>;
|
6 | declare module '../../iterable/iterablex' {
|
7 | interface IterableX<T> {
|
8 | groupBy: typeof groupByProto;
|
9 | }
|
10 | }
|