skipUntil.d.ts 753 B

123456789101112131415
  1. import { Observable } from '../Observable';
  2. import { MonoTypeOperatorFunction } from '../interfaces';
  3. /**
  4. * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
  5. *
  6. * <img src="./img/skipUntil.png" width="100%">
  7. *
  8. * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
  9. * be mirrored by the resulting Observable.
  10. * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
  11. * an item, then emits the remaining items.
  12. * @method skipUntil
  13. * @owner Observable
  14. */
  15. export declare function skipUntil<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T>;