import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { maxBy } from '../../asynciterable/maxby.js'; import { ExtremaOptions } from '../../asynciterable/extremaoptions.js'; /** * @ignore */ export function maxByProto( this: AsyncIterable, options?: ExtremaOptions ): Promise { return maxBy(this, options); } AsyncIterableX.prototype.maxBy = maxByProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { maxBy: typeof maxByProto; } }