b8e561d77dcef0cbd9c7d125eef8341905b4bfdb797786e33d98e2f3141b5cc922fe8619f90b4d0268c70dd9b0730b817d7eb0ec3ee4ff6c70f8be2c82433d 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { 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 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. */
  35. export declare function skip<T>(count: number): MonoTypeOperatorFunction<T>;
  36. //# sourceMappingURL=skip.d.ts.map