import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { ThrottleAsyncIterable } from '../../asynciterable/operators/throttle.js'; /** * @ignore */ export function throttleProto(this: AsyncIterableX, time: number): AsyncIterableX { return new ThrottleAsyncIterable(this, time); } AsyncIterableX.prototype.throttle = throttleProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { throttle: typeof throttleProto; } }