@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
18 lines (14 loc) • 475 B
text/typescript
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js';
import { EndWithAsyncIterable } from '../../asynciterable/operators/endwith.js';
/**
* @ignore
*/
export function endWithProto<T>(this: AsyncIterableX<T>, ...args: T[]) {
return new EndWithAsyncIterable<T>(this, args);
}
AsyncIterableX.prototype.endWith = endWithProto;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
endWith: typeof endWithProto;
}
}