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