Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ignoreElements.d.ts 858B

1234567891011121314151617181920212223242526272829
  1. import { OperatorFunction } from '../types';
  2. /**
  3. * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.
  4. *
  5. * ![](ignoreElements.png)
  6. *
  7. * ## Examples
  8. * ### Ignores emitted values, reacts to observable's completion.
  9. * ```ts
  10. * import { of } from 'rxjs';
  11. * import { ignoreElements } from 'rxjs/operators';
  12. *
  13. * of('you', 'talking', 'to', 'me').pipe(
  14. * ignoreElements(),
  15. * )
  16. * .subscribe(
  17. * word => console.log(word),
  18. * err => console.log('error:', err),
  19. * () => console.log('the end'),
  20. * );
  21. * // result:
  22. * // 'the end'
  23. * ```
  24. * @return {Observable} An empty Observable that only calls `complete`
  25. * or `error`, based on which one is called by the source Observable.
  26. * @method ignoreElements
  27. * @owner Observable
  28. */
  29. export declare function ignoreElements(): OperatorFunction<any, never>;