UNPKG

949 BTypeScriptView Raw
1import { IterableX } from '../../iterable/iterablex';
2import { OrderedIterableX } from '../../iterable/orderby';
3import { thenBy as _thenBy, thenByDescending as _thenByDescending } from '../../iterable/orderby';
4/**
5 * @ignore
6 */
7export declare function orderByProto<TKey, TSource>(this: IterableX<TSource>, keySelector: (item: TSource) => TKey, comparer?: (fst: TKey, snd: TKey) => number): OrderedIterableX<TKey, TSource>;
8/**
9 * @ignore
10 */
11export declare function orderByDescendingProto<TKey, TSource>(this: IterableX<TSource>, keySelector: (item: TSource) => TKey, comparer?: (fst: TKey, snd: TKey) => number): OrderedIterableX<TKey, TSource>;
12export declare namespace iterable {
13 let thenBy: typeof _thenBy;
14 let thenByDescending: typeof _thenByDescending;
15}
16declare module '../../iterable/iterablex' {
17 interface IterableX<T> {
18 orderBy: typeof orderByProto;
19 orderByDescending: typeof orderByDescendingProto;
20 }
21}