UNPKG

435 BTypeScriptView Raw
1import { AsyncIterableX } from '../../asynciterable/asynciterablex';
2/**
3 * @ignore
4 */
5export declare function maxByProto<TSource, TKey>(this: AsyncIterableX<TSource>, keySelector: (x: TSource) => TKey | Promise<TKey>, comparer?: (x: TKey, y: TKey) => number | Promise<number>): AsyncIterableX<TSource>;
6declare module '../../asynciterable/asynciterablex' {
7 interface AsyncIterableX<T> {
8 maxBy: typeof maxByProto;
9 }
10}