Installation
npm install --save @types/long-timeout
Summary
This package contains type definitions for long-timeout (https://github.com/tellnes/long-timeout).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/long-timeout.
index.d.ts
export type Listener = (...args: any[]) => void;
export class Timeout {
after: number;
close: () => void;
listener: Listener;
ref: () => void;
start: () => void;
unref: () => void;
unreffed: boolean;
constructor(listener: Listener, ms: number);
}
export type Interval = Timeout;
export function clearInterval(timer: Interval): void;
export function clearTimeout(timer: Timeout): void;
export function setInterval(listener: Listener, ms: number): Interval;
export function setTimeout(listener: Listener, ms: number): Timeout;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: none
Credits
These definitions were written by Matthias Kunnen.