@types/node 12.12.39 → 12.12.43
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 v12.12/README.md +2 -2
- node v12.12/globals.d.ts +1 -2
- node v12.12/globals.global.d.ts +1 -0
- node v12.12/index.d.ts +5 -2
- node v12.12/package.json +13 -8
- node v12.12/ts3.2/base.d.ts +1 -1
- node v12.12/ts3.2/index.d.ts +4 -0
- node v12.12/ts3.4/base.d.ts +20 -0
- node v12.12/ts3.4/globals.global.d.ts +1 -0
- node v12.12/ts3.4/index.d.ts +8 -0
- node v12.12/ts3.7/base.d.ts +1 -1
- node v12.12/util.d.ts +1 -0
node v12.12/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 01 Jun 2020 22:58:54 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [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), and [Jason Kwok](https://github.com/JasonHK).
|
node v12.12/globals.d.ts
CHANGED
|
@@ -164,7 +164,6 @@ interface ImportMeta {
|
|
|
164
164
|
* *
|
|
165
165
|
------------------------------------------------*/
|
|
166
166
|
declare var process: NodeJS.Process;
|
|
167
|
-
declare var global: NodeJS.Global;
|
|
168
167
|
declare var console: Console;
|
|
169
168
|
|
|
170
169
|
declare var __filename: string;
|
|
@@ -894,7 +893,7 @@ declare namespace NodeJS {
|
|
|
894
893
|
visibility: string;
|
|
895
894
|
};
|
|
896
895
|
};
|
|
897
|
-
kill(pid: number, signal?: string | number):
|
|
896
|
+
kill(pid: number, signal?: string | number): true;
|
|
898
897
|
pid: number;
|
|
899
898
|
ppid: number;
|
|
900
899
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var global: NodeJS.Global;
|
node v12.12/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>
|
|
@@ -42,6 +41,7 @@
|
|
|
42
41
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
43
42
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
44
43
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
44
|
+
// Jason Kwok <https://github.com/JasonHK>
|
|
45
45
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
46
46
|
|
|
47
47
|
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
@@ -58,7 +58,10 @@
|
|
|
58
58
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
59
59
|
/// <reference path="base.d.ts" />
|
|
60
60
|
|
|
61
|
-
// We can't include
|
|
61
|
+
// We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.4+
|
|
62
|
+
/// <reference path="globals.global.d.ts" />
|
|
63
|
+
|
|
64
|
+
// We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
|
|
62
65
|
/// <reference path="assert.d.ts" />
|
|
63
66
|
|
|
64
67
|
// TypeScript 2.1-specific augmentations:
|
node v12.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.43",
|
|
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",
|
|
@@ -213,6 +208,11 @@
|
|
|
213
208
|
"name": "ExE Boss",
|
|
214
209
|
"url": "https://github.com/ExE-Boss",
|
|
215
210
|
"githubUsername": "ExE-Boss"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "Jason Kwok",
|
|
214
|
+
"url": "https://github.com/JasonHK",
|
|
215
|
+
"githubUsername": "JasonHK"
|
|
216
216
|
}
|
|
217
217
|
],
|
|
218
218
|
"main": "",
|
|
@@ -223,6 +223,11 @@
|
|
|
223
223
|
"ts3.7/*"
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
|
+
">=3.4.0-0": {
|
|
227
|
+
"*": [
|
|
228
|
+
"ts3.4/*"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
226
231
|
">=3.2.0-0": {
|
|
227
232
|
"*": [
|
|
228
233
|
"ts3.2/*"
|
|
@@ -236,6 +241,6 @@
|
|
|
236
241
|
},
|
|
237
242
|
"scripts": {},
|
|
238
243
|
"dependencies": {},
|
|
239
|
-
"typesPublisherContentHash": "
|
|
240
|
-
"typeScriptVersion": "
|
|
244
|
+
"typesPublisherContentHash": "fb7bece2ac1ec6ed15b100b43e1f0f046bf2a6554c3cdc55af1aa500ae48a59a",
|
|
245
|
+
"typeScriptVersion": "3.0"
|
|
241
246
|
}
|
node v12.12/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 v12.12/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.4 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" />
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.4.
|
|
2
|
+
|
|
3
|
+
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
|
+
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
|
+
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
6
|
+
// - ~/ts3.4/base.d.ts - Definitions specific to TypeScript 3.4
|
|
7
|
+
// - ~/ts3.4/index.d.ts - Definitions specific to TypeScript 3.4 with assert pulled in
|
|
8
|
+
|
|
9
|
+
// Reference required types from the default lib:
|
|
10
|
+
/// <reference lib="es2018" />
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/// <reference lib="esnext.intl" />
|
|
13
|
+
/// <reference lib="esnext.bigint" />
|
|
14
|
+
|
|
15
|
+
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
+
// tslint:disable-next-line:no-bad-reference
|
|
17
|
+
/// <reference path="../ts3.2/base.d.ts" />
|
|
18
|
+
|
|
19
|
+
// TypeScript 3.5-specific augmentations:
|
|
20
|
+
/// <reference path="globals.global.d.ts" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var global: NodeJS.Global & typeof globalThis;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.4.
|
|
2
|
+
// This is requried to enable typing assert in ts3.7 without causing errors
|
|
3
|
+
// Typically type modifiations should be made in base.d.ts instead of here
|
|
4
|
+
|
|
5
|
+
/// <reference path="base.d.ts" />
|
|
6
|
+
|
|
7
|
+
// tslint:disable-next-line:no-bad-reference
|
|
8
|
+
/// <reference path="../assert.d.ts" />
|
node v12.12/ts3.7/base.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
16
|
// tslint:disable-next-line:no-bad-reference
|
|
17
|
-
/// <reference path="../ts3.
|
|
17
|
+
/// <reference path="../ts3.4/base.d.ts" />
|
|
18
18
|
|
|
19
19
|
// TypeScript 3.7-specific augmentations:
|
|
20
20
|
/// <reference path="assert.d.ts" />
|
node v12.12/util.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ declare module "util" {
|
|
|
110
110
|
function isAnyArrayBuffer(object: any): boolean;
|
|
111
111
|
function isArgumentsObject(object: any): object is IArguments;
|
|
112
112
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
113
|
+
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
113
114
|
function isAsyncFunction(object: any): boolean;
|
|
114
115
|
function isBooleanObject(object: any): object is Boolean;
|
|
115
116
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|