Bones/node_modules/rxjs/operator/skipWhile.d.ts

13 lines
657 B
TypeScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
import { Observable } from '../Observable';
/**
* Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds
* true, but emits all further source items as soon as the condition becomes false.
*
* <img src="./img/skipWhile.png" width="100%">
*
* @param {Function} predicate - a function to test each item emitted from the source Observable.
* @returns {Observable<T>} an Observable that begins emitting items emitted by the source Observable when the
* specified predicate becomes false.
*/
export declare function skipWhile<T>(predicate: (value: T, index: number) => boolean): Observable<T>;