@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
12 lines (11 loc) • 582 B
TypeScript
import { MonoTypeOperatorFunction } from '../../interfaces';
/**
* Generates an async-iterable sequence by repeating a source sequence as long as the given loop postcondition holds.
*
* @export
* @template TSource The type of elements in the source sequence.
* @param {(() => boolean)} condition Loop condition.
* @returns {MonoTypeOperatorFunction<TSource>} An operator that generates an async-iterable by repeating a
* source sequence while the postcondition holds.
*/
export declare function doWhile<TSource>(condition: () => boolean): MonoTypeOperatorFunction<TSource>;