function setInterval
Overload 1
#setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void,delay?: number,...args: TArgs,): TimeoutSchedules repeated execution of callback every delay milliseconds.
When delay is larger than 2147483647 or less than 1 or NaN, the delay
will be set to 1. Non-integer delays are truncated to an integer.
If callback is not a function, a TypeError will be thrown.
This method has a custom variant for promises that is available using
timersPromises.setInterval().
Type Parameters #
#TArgs extends any[] Parameters #
Return Type #
for use with clearInterval()