UNPKG

560 BTypeScriptView Raw
1import { IterableX } from './iterablex';
2/**
3 * Repeats a given value for the specified number of times as an iterable.
4 *
5 * @export
6 * @template TSource The type of element to repeat.
7 * @param {TSource} value The value to repeat as an iterable.
8 * @param {number} [count=-1] The number of times to repeat the value, infinite if not specified.
9 * @returns {AsyncIterableX<TSource>} An iterable with a single item that is repeated over the specified times.
10 */
11export declare function repeatValue<TSource>(value: TSource, count?: number): IterableX<TSource>;