import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { union } from '../../asynciterable/operators/union.js'; /** * @ignore */ export function unionProto( this: AsyncIterableX, right: AsyncIterable, comparer?: (x: T, y: T) => boolean | Promise ): AsyncIterableX { return union(right, comparer)(this); } AsyncIterableX.prototype.union = unionProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { union: typeof unionProto; } }