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