@types/long-timeout
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/long-timeout

Weekly Downloads

4,318

Version

0.1.2

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • types