Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

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>;