import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { EndWithAsyncIterable } from '../../asynciterable/operators/endwith.js'; /** * @ignore */ export function endWithProto(this: AsyncIterableX, ...args: T[]) { return new EndWithAsyncIterable(this, args); } AsyncIterableX.prototype.endWith = endWithProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { endWith: typeof endWithProto; } }