UNPKG

@reactivex/ix-es5-esm

Version:

The Interactive Extensions for JavaScript

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