import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { reduce } from '../../asynciterable/reduce.js'; import { ReduceOptions } from '../../asynciterable/reduceoptions.js'; /** * @ignore */ export async function reduceProto( this: AsyncIterableX, options: ReduceOptions ): Promise { return reduce(this, options); } AsyncIterableX.prototype.reduce = reduceProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { reduce: typeof reduceProto; } }