@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
12 lines (11 loc) • 560 B
TypeScript
import { IterableX } from './iterablex';
/**
* Repeats a given value for the specified number of times as an iterable.
*
* @export
* @template TSource The type of element to repeat.
* @param {TSource} value The value to repeat as an iterable.
* @param {number} [count=-1] The number of times to repeat the value, infinite if not specified.
* @returns {AsyncIterableX<TSource>} An iterable with a single item that is repeated over the specified times.
*/
export declare function repeatValue<TSource>(value: TSource, count?: number): IterableX<TSource>;