UNPKG

1.18 kBTypeScriptView Raw
1import { MonoTypeOperatorFunction } from '../types';
2/**
3 * Returns an Observable that skips the first `count` items emitted by the source Observable.
4 *
5 * ![](skip.png)
6 *
7 * Skips the values until the sent notifications are equal or less than provided skip count. It raises
8 * an error if skip count is equal or more than the actual number of emits and source raises an error.
9 *
10 * ## Example
11 *
12 * Skip the values before the emission
13 *
14 * ```ts
15 * import { interval, skip } from 'rxjs';
16 *
17 * // emit every half second
18 * const source = interval(500);
19 * // skip the first 10 emitted values
20 * const result = source.pipe(skip(10));
21 *
22 * result.subscribe(value => console.log(value));
23 * // output: 10...11...12...13...
24 * ```
25 *
26 * @see {@link last}
27 * @see {@link skipWhile}
28 * @see {@link skipUntil}
29 * @see {@link skipLast}
30 *
31 * @param {Number} count - The number of times, items emitted by source Observable should be skipped.
32 * @return A function that returns an Observable that skips the first `count`
33 * values emitted by the source Observable.
34 */
35export declare function skip<T>(count: number): MonoTypeOperatorFunction<T>;
36//# sourceMappingURL=skip.d.ts.map
\No newline at end of file