Interface SetTimeout

setTimeout which can be promisified

interface SetTimeout {
    [promisifySymbol]: SetTimeoutPromise;
    __promisify__: SetTimeoutPromise;
    (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]: SetTimeoutPromise
__promisify__: SetTimeoutPromise