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 781B

1234567891011121314151617181920212223242526
  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. * ```javascript
  10. * of('you', 'talking', 'to', 'me').pipe(
  11. * ignoreElements(),
  12. * )
  13. * .subscribe(
  14. * word => console.log(word),
  15. * err => console.log('error:', err),
  16. * () => console.log('the end'),
  17. * );
  18. * // result:
  19. * // 'the end'
  20. * ```
  21. * @return {Observable} An empty Observable that only calls `complete`
  22. * or `error`, based on which one is called by the source Observable.
  23. * @method ignoreElements
  24. * @owner Observable
  25. */
  26. export declare function ignoreElements(): OperatorFunction<any, never>;