diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/operators/bufferCount.d.ts')
-rw-r--r-- | tools/node_modules/eslint/node_modules/rxjs/internal/operators/bufferCount.d.ts | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/bufferCount.d.ts b/tools/node_modules/eslint/node_modules/rxjs/internal/operators/bufferCount.d.ts deleted file mode 100644 index ba2721df0f..0000000000 --- a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/bufferCount.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Buffers the source Observable values until the size hits the maximum - * `bufferSize` given. - * - * <span class="informal">Collects values from the past as an array, and emits - * that array only when its size reaches `bufferSize`.</span> - * - * ![](bufferCount.png) - * - * Buffers a number of values from the source Observable by `bufferSize` then - * emits the buffer and clears it, and starts a new buffer each - * `startBufferEvery` values. If `startBufferEvery` is not provided or is - * `null`, then new buffers are started immediately at the start of the source - * and when each buffer closes and is emitted. - * - * ## Examples - * - * Emit the last two click events as an array - * - * ```javascript - * import { fromEvent } from 'rxjs'; - * import { bufferCount } from 'rxjs/operators'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * On every click, emit the last two click events as an array - * - * ```javascript - * import { fromEvent } from 'rxjs'; - * import { bufferCount } from 'rxjs/operators'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2, 1)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link pairwise} - * @see {@link windowCount} - * - * @param {number} bufferSize The maximum size of the buffer emitted. - * @param {number} [startBufferEvery] Interval at which to start a new buffer. - * For example if `startBufferEvery` is `2`, then a new buffer will be started - * on every other value from the source. A new buffer is started at the - * beginning of the source by default. - * @return {Observable<T[]>} An Observable of arrays of buffered values. - * @method bufferCount - * @owner Observable - */ -export declare function bufferCount<T>(bufferSize: number, startBufferEvery?: number): OperatorFunction<T, T[]>; |