UNPKG

@reactivex/ix-es5-esm

Version:

The Interactive Extensions for JavaScript

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