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