baconjs
Version:
A small functional reactive programming lib for JavaScript.
10 lines (8 loc) • 344 B
TypeScript
import { EventStream } from "./observable";
/**
Repeats the single element indefinitely with the given interval (in milliseconds)
@param delay Repeat delay in milliseconds
@param value The single value to repeat
@typeparam V Type of stream elements
*/
export default function interval<V>(delay: number, value: V): EventStream<V>;