@types/long-timeout
Advanced tools
Comparing version
@@ -1,6 +0,1 @@ | ||
// Type definitions for long-timeout 0.1 | ||
// Project: https://github.com/tellnes/long-timeout | ||
// Definitions by: Matthias Kunnen <https://github.com/MatthiasKunnen> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export type Listener = (...args: any[]) => void; | ||
@@ -7,0 +2,0 @@ |
{ | ||
"name": "@types/long-timeout", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "TypeScript definitions for long-timeout", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/long-timeout", | ||
"license": "MIT", | ||
@@ -9,4 +10,4 @@ "contributors": [ | ||
"name": "Matthias Kunnen", | ||
"url": "https://github.com/MatthiasKunnen", | ||
"githubUsername": "MatthiasKunnen" | ||
"githubUsername": "MatthiasKunnen", | ||
"url": "https://github.com/MatthiasKunnen" | ||
} | ||
@@ -23,4 +24,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "44cddeaf423fa07423b76cbf24e1474ac6db3c334c53f49816268c3080eaaa70", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "8f1c745b9bbe70362088e228232045ce3f42bb60b3083a7256102c5652e7e279", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,35 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/long-timeout. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/long-timeout/index.d.ts) | ||
````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: Wed, 12 Aug 2020 23:48:50 GMT | ||
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Matthias Kunnen](https://github.com/MatthiasKunnen). |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3711
16.88%1
-50%43
152.94%16
-20%