UNPKG

621 BTypeScriptView Raw
1import { ExtremaOptions } from './extremaoptions';
2/**
3 * Returns the maximum element with the optional selector.
4 *
5 * @export
6 * @template TSource The type of the elements in the source sequence.
7 * @param {AsyncIterable<TSource>} source An async-iterable sequence to determine the maximum element of.
8 * @param {ExtremaByOptions<TKey>} [options] The options which include an optional comparer and abort signal.
9 * @returns {Promise<TResult>} The maximum element.
10 */
11export declare function max<TSource, TResult = TSource>(source: AsyncIterable<TSource>, options?: ExtremaOptions<TSource, TResult>): Promise<TResult>;