Use NodeJS.Timeout instead.

interface Timer {
    "[toPrimitive]"(): number;
    hasRef(): boolean;
    ref(): this;
    refresh(): this;
    unref(): this;
}

Hierarchy (View Summary)

Methods

  • Returns number

  • Returns boolean

  • Returns this

  • Returns this

  • Returns this