Installation
npm install --save @types/safe-timers
Summary
This package contains type definitions for safe-timers (https://github.com/Wizcorp/safe-timers#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/safe-timers.
export const maxInterval: number;
export class Timeout {
clear(): void;
}
export function setTimeout<T extends any[]>(callback: (...args: T) => void, interval: number, ...args: T): Timeout;
export function setTimeoutAt<T extends any[]>(callback: (...args: T) => void, timestamp: number, ...args: T): Timeout;
export function clearTimeout(timeout: Timeout): void;
export class Interval {
clear(): void;
}
export function setInterval<T extends any[]>(callback: (...args: T) => void, interval: number, ...args: T): Interval;
export function clearInterval(interval: Interval): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Kamil Socha.