Interface SetInterval

setInterval which can be promisified

interface SetInterval {
    [promisifySymbol]: SetIntervalPromise;
    __promisify__: SetIntervalPromise;
    (f: ((a: void) => any), n?: number): Timer;
    <TArgs>(f: ((...a: TArgs) => any), n?: number, ...a: TArgs): Timer;
}
  • Parameters

    • f: ((a: void) => any)
        • (a): any
        • Parameters

          • a: void

          Returns any

    • Optionaln: number

    Returns Timer

  • Type Parameters

    • TArgs extends any[]

    Parameters

    • f: ((...a: TArgs) => any)
        • (...a): any
        • Parameters

          Returns any

    • Optionaln: number
    • Rest...a: TArgs

    Returns Timer

Properties

[promisifySymbol]: SetIntervalPromise
__promisify__: SetIntervalPromise