ignoreElements.d.ts 489 B

123456789101112
  1. import { MonoTypeOperatorFunction } from '../interfaces';
  2. /**
  3. * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.
  4. *
  5. * <img src="./img/ignoreElements.png" width="100%">
  6. *
  7. * @return {Observable} An empty Observable that only calls `complete`
  8. * or `error`, based on which one is called by the source Observable.
  9. * @method ignoreElements
  10. * @owner Observable
  11. */
  12. export declare function ignoreElements<T>(): MonoTypeOperatorFunction<T>;