@types/node 18.14.3 → 18.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +1 -1
- node/package.json +2 -2
- node/timers.d.ts +7 -0
- node/ts4.8/util.d.ts +1 -1
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 03 Mar 2023 05:02:54 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.14.
|
|
3
|
+
"version": "18.14.5",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "3b78623b18336bdbad8d261a94e1d49ea918ee46642573ca4a45433440328550",
|
|
236
236
|
"typeScriptVersion": "4.2"
|
|
237
237
|
}
|
node/timers.d.ts
CHANGED
|
@@ -62,6 +62,13 @@ declare module 'timers' {
|
|
|
62
62
|
[Symbol.toPrimitive](): number;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Schedules execution of a one-time `callback` after `delay` milliseconds. The `callback` will likely not be invoked in precisely `delay` milliseconds.
|
|
67
|
+
* Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering. The callback will be called as close as possible to the time specified.
|
|
68
|
+
* When `delay` is larger than `2147483647` or less than `1`, the `delay` will be set to `1`. Non-integer delays are truncated to an integer.
|
|
69
|
+
* If `callback` is not a function, a [TypeError](https://nodejs.org/api/errors.html#class-typeerror) will be thrown.
|
|
70
|
+
* @since v0.0.1
|
|
71
|
+
*/
|
|
65
72
|
function setTimeout<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
|
|
66
73
|
// util.promisify no rest args compability
|
|
67
74
|
// tslint:disable-next-line void-return
|
node/ts4.8/util.d.ts
CHANGED
|
@@ -1482,7 +1482,7 @@ declare module 'util' {
|
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1484
1484
|
*/
|
|
1485
|
-
entries(): IterableIterator<[
|
|
1485
|
+
entries(): IterableIterator<[string, string]>;
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Returns the value of the first name-value pair whose name is `name`.
|
|
1488
1488
|
* If there are no such pairs, `null` is returned.
|