@types/node 14.0.1 → 14.0.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 +2 -2
- node/events.d.ts +10 -0
- node/globals.d.ts +1 -1
- node/globals.global.d.ts +1 -0
- node/index.d.ts +6 -2
- node/package.json +13 -8
- node/ts3.2/base.d.ts +1 -1
- node/ts3.2/index.d.ts +4 -0
- node/ts3.5/base.d.ts +3 -0
- node/ts3.5/globals.global.d.ts +1 -0
- node/util.d.ts +1 -0
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://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: Thu, 21 May 2020 20:08:41 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), and [Jason Kwok](https://github.com/JasonHK).
|
node/events.d.ts
CHANGED
|
@@ -43,6 +43,16 @@ declare module "events" {
|
|
|
43
43
|
/** @deprecated since v4.0.0 */
|
|
44
44
|
static listenerCount(emitter: EventEmitter, event: string | symbol): number;
|
|
45
45
|
static defaultMaxListeners: number;
|
|
46
|
+
/**
|
|
47
|
+
* This symbol shall be used to install a listener for only monitoring `'error'`
|
|
48
|
+
* events. Listeners installed using this symbol are called before the regular
|
|
49
|
+
* `'error'` listeners are called.
|
|
50
|
+
*
|
|
51
|
+
* Installing a listener using this symbol does not change the behavior once an
|
|
52
|
+
* `'error'` event is emitted, therefore the process will still crash if no
|
|
53
|
+
* regular `'error'` listener is installed.
|
|
54
|
+
*/
|
|
55
|
+
static readonly errorMonitor: unique symbol;
|
|
46
56
|
}
|
|
47
57
|
}
|
|
48
58
|
|
node/globals.d.ts
CHANGED
|
@@ -141,7 +141,6 @@ interface RequireResolve extends NodeJS.RequireResolve {}
|
|
|
141
141
|
interface NodeModule extends NodeJS.Module {}
|
|
142
142
|
|
|
143
143
|
declare var process: NodeJS.Process;
|
|
144
|
-
declare var global: NodeJS.Global;
|
|
145
144
|
declare var console: Console;
|
|
146
145
|
|
|
147
146
|
declare var __filename: string;
|
|
@@ -919,6 +918,7 @@ declare namespace NodeJS {
|
|
|
919
918
|
on(event: "newListener", listener: NewListenerListener): this;
|
|
920
919
|
on(event: "removeListener", listener: RemoveListenerListener): this;
|
|
921
920
|
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
921
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
922
922
|
|
|
923
923
|
once(event: "beforeExit", listener: BeforeExitListener): this;
|
|
924
924
|
once(event: "disconnect", listener: DisconnectListener): this;
|
node/globals.global.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var global: NodeJS.Global;
|
node/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
// Benjamin Toueg <https://github.com/btoueg>
|
|
10
10
|
// Bruno Scheufler <https://github.com/brunoscheufler>
|
|
11
11
|
// Chigozirim C. <https://github.com/smac89>
|
|
12
|
-
// Christian Vaagland Tellnes <https://github.com/tellnes>
|
|
13
12
|
// David Junger <https://github.com/touffy>
|
|
14
13
|
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
15
14
|
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
@@ -43,6 +42,8 @@
|
|
|
43
42
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
44
43
|
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
|
|
45
44
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
45
|
+
// Anna Henningsen <https://github.com/addaleax>
|
|
46
|
+
// Jason Kwok <https://github.com/JasonHK>
|
|
46
47
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
47
48
|
|
|
48
49
|
// NOTE: These definitions support NodeJS and TypeScript 3.5.
|
|
@@ -59,7 +60,10 @@
|
|
|
59
60
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
60
61
|
/// <reference path="base.d.ts" />
|
|
61
62
|
|
|
62
|
-
// We can't include
|
|
63
|
+
// We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.5+
|
|
64
|
+
/// <reference path="globals.global.d.ts" />
|
|
65
|
+
|
|
66
|
+
// We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
|
|
63
67
|
/// <reference path="assert.d.ts" />
|
|
64
68
|
|
|
65
69
|
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.5",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -49,11 +49,6 @@
|
|
|
49
49
|
"url": "https://github.com/smac89",
|
|
50
50
|
"githubUsername": "smac89"
|
|
51
51
|
},
|
|
52
|
-
{
|
|
53
|
-
"name": "Christian Vaagland Tellnes",
|
|
54
|
-
"url": "https://github.com/tellnes",
|
|
55
|
-
"githubUsername": "tellnes"
|
|
56
|
-
},
|
|
57
52
|
{
|
|
58
53
|
"name": "David Junger",
|
|
59
54
|
"url": "https://github.com/touffy",
|
|
@@ -218,6 +213,16 @@
|
|
|
218
213
|
"name": "Piotr Błażejewicz",
|
|
219
214
|
"url": "https://github.com/peterblazejewicz",
|
|
220
215
|
"githubUsername": "peterblazejewicz"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "Anna Henningsen",
|
|
219
|
+
"url": "https://github.com/addaleax",
|
|
220
|
+
"githubUsername": "addaleax"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "Jason Kwok",
|
|
224
|
+
"url": "https://github.com/JasonHK",
|
|
225
|
+
"githubUsername": "JasonHK"
|
|
221
226
|
}
|
|
222
227
|
],
|
|
223
228
|
"main": "",
|
|
@@ -246,6 +251,6 @@
|
|
|
246
251
|
},
|
|
247
252
|
"scripts": {},
|
|
248
253
|
"dependencies": {},
|
|
249
|
-
"typesPublisherContentHash": "
|
|
250
|
-
"typeScriptVersion": "
|
|
254
|
+
"typesPublisherContentHash": "3c6dff84a51cbfcb7b5fafcfe136319afe7fe4df89f6246837084ae5c2e5f8b3",
|
|
255
|
+
"typeScriptVersion": "3.0"
|
|
251
256
|
}
|
node/ts3.2/base.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
5
|
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
6
6
|
// - ~/ts3.2/base.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
-
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with assert pulled in
|
|
7
|
+
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in
|
|
8
8
|
|
|
9
9
|
// Reference required types from the default lib:
|
|
10
10
|
/// <reference lib="es2018" />
|
node/ts3.2/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
|
+
// This is requried to enable globalThis support for global in ts3.5 without causing errors
|
|
2
3
|
// This is requried to enable typing assert in ts3.7 without causing errors
|
|
3
4
|
// Typically type modifiations should be made in base.d.ts instead of here
|
|
4
5
|
|
|
@@ -6,3 +7,6 @@
|
|
|
6
7
|
|
|
7
8
|
// tslint:disable-next-line:no-bad-reference
|
|
8
9
|
/// <reference path="../assert.d.ts" />
|
|
10
|
+
|
|
11
|
+
// tslint:disable-next-line:no-bad-reference
|
|
12
|
+
/// <reference path="../globals.global.d.ts" />
|
node/ts3.5/base.d.ts
CHANGED
|
@@ -16,5 +16,8 @@
|
|
|
16
16
|
// tslint:disable-next-line:no-bad-reference
|
|
17
17
|
/// <reference path="../ts3.2/base.d.ts" />
|
|
18
18
|
|
|
19
|
+
// TypeScript 3.5-specific augmentations:
|
|
20
|
+
/// <reference path="globals.global.d.ts" />
|
|
21
|
+
|
|
19
22
|
// TypeScript 3.5-specific augmentations:
|
|
20
23
|
/// <reference path="wasi.d.ts" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var global: NodeJS.Global & typeof globalThis;
|
node/util.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ declare module "util" {
|
|
|
123
123
|
function isAnyArrayBuffer(object: any): boolean;
|
|
124
124
|
function isArgumentsObject(object: any): object is IArguments;
|
|
125
125
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
126
|
+
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
126
127
|
function isAsyncFunction(object: any): boolean;
|
|
127
128
|
function isBooleanObject(object: any): object is Boolean;
|
|
128
129
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|