ix
Version:
The Interactive Extensions for JavaScript
22 lines (18 loc) • 584 B
text/typescript
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js';
import { reduceRight } from '../../asynciterable/reduceright.js';
import { ReduceOptions } from '../../asynciterable/reduceoptions.js';
/**
* @ignore
*/
export async function reduceRightProto<T, R = T>(
this: AsyncIterableX<T>,
options: ReduceOptions<T, R>
): Promise<R> {
return reduceRight(this, options);
}
AsyncIterableX.prototype.reduceRight = reduceRightProto;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
reduceRight: typeof reduceRightProto;
}
}