Front end of the Slack clone application.

skipWhile.d.ts 719B

123456789101112131415
  1. import { Observable } from '../Observable';
  2. /**
  3. * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds
  4. * true, but emits all further source items as soon as the condition becomes false.
  5. *
  6. * <img src="./img/skipWhile.png" width="100%">
  7. *
  8. * @param {Function} predicate - A function to test each item emitted from the source Observable.
  9. * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the
  10. * specified predicate becomes false.
  11. * @method skipWhile
  12. * @owner Observable
  13. */
  14. export declare function skipWhile<T>(this: Observable<T>, predicate: (value: T, index: number) => boolean): Observable<T>;