@types/node 12.12.66 → 12.12.67
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 +1 -1
- node v12.12/package.json +2 -2
- node v12.12/punycode.d.ts +56 -0
- node v12.12/worker_threads.d.ts +25 -2
node v12.12/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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: Fri, 09 Oct 2020 06:51:18 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
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.67",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -231,6 +231,6 @@
|
|
|
231
231
|
},
|
|
232
232
|
"scripts": {},
|
|
233
233
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
234
|
+
"typesPublisherContentHash": "4c35ac73820460e6527d557019e42281a864eadfa089f4d6a9dc006801b48001",
|
|
235
235
|
"typeScriptVersion": "3.2"
|
|
236
236
|
}
|
node v12.12/punycode.d.ts
CHANGED
|
@@ -1,12 +1,68 @@
|
|
|
1
1
|
declare module "punycode" {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated since v7.0.0
|
|
4
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
5
|
+
* In a future major version of Node.js this module will be removed.
|
|
6
|
+
* Users currently depending on the punycode module should switch to using
|
|
7
|
+
* the userland-provided Punycode.js module instead.
|
|
8
|
+
*/
|
|
2
9
|
function decode(string: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated since v7.0.0
|
|
12
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
13
|
+
* In a future major version of Node.js this module will be removed.
|
|
14
|
+
* Users currently depending on the punycode module should switch to using
|
|
15
|
+
* the userland-provided Punycode.js module instead.
|
|
16
|
+
*/
|
|
3
17
|
function encode(string: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated since v7.0.0
|
|
20
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
21
|
+
* In a future major version of Node.js this module will be removed.
|
|
22
|
+
* Users currently depending on the punycode module should switch to using
|
|
23
|
+
* the userland-provided Punycode.js module instead.
|
|
24
|
+
*/
|
|
4
25
|
function toUnicode(domain: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated since v7.0.0
|
|
28
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
29
|
+
* In a future major version of Node.js this module will be removed.
|
|
30
|
+
* Users currently depending on the punycode module should switch to using
|
|
31
|
+
* the userland-provided Punycode.js module instead.
|
|
32
|
+
*/
|
|
5
33
|
function toASCII(domain: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated since v7.0.0
|
|
36
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
37
|
+
* In a future major version of Node.js this module will be removed.
|
|
38
|
+
* Users currently depending on the punycode module should switch to using
|
|
39
|
+
* the userland-provided Punycode.js module instead.
|
|
40
|
+
*/
|
|
6
41
|
const ucs2: ucs2;
|
|
7
42
|
interface ucs2 {
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated since v7.0.0
|
|
45
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
46
|
+
* In a future major version of Node.js this module will be removed.
|
|
47
|
+
* Users currently depending on the punycode module should switch to using
|
|
48
|
+
* the userland-provided Punycode.js module instead.
|
|
49
|
+
*/
|
|
8
50
|
decode(string: string): number[];
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated since v7.0.0
|
|
53
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
54
|
+
* In a future major version of Node.js this module will be removed.
|
|
55
|
+
* Users currently depending on the punycode module should switch to using
|
|
56
|
+
* the userland-provided Punycode.js module instead.
|
|
57
|
+
*/
|
|
9
58
|
encode(codePoints: number[]): string;
|
|
10
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated since v7.0.0
|
|
62
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
63
|
+
* In a future major version of Node.js this module will be removed.
|
|
64
|
+
* Users currently depending on the punycode module should switch to using
|
|
65
|
+
* the userland-provided Punycode.js module instead.
|
|
66
|
+
*/
|
|
11
67
|
const version: string;
|
|
12
68
|
}
|
node v12.12/worker_threads.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare module "worker_threads" {
|
|
|
5
5
|
|
|
6
6
|
const isMainThread: boolean;
|
|
7
7
|
const parentPort: null | MessagePort;
|
|
8
|
+
const resourceLimits: ResourceLimits;
|
|
8
9
|
const SHARE_ENV: unique symbol;
|
|
9
10
|
const threadId: number;
|
|
10
11
|
const workerData: any;
|
|
@@ -14,9 +15,11 @@ declare module "worker_threads" {
|
|
|
14
15
|
readonly port2: MessagePort;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
type TransferListItem = ArrayBuffer | MessagePort;
|
|
19
|
+
|
|
17
20
|
class MessagePort extends EventEmitter {
|
|
18
21
|
close(): void;
|
|
19
|
-
postMessage(value: any, transferList?:
|
|
22
|
+
postMessage(value: any, transferList?: TransferListItem[]): void;
|
|
20
23
|
ref(): void;
|
|
21
24
|
unref(): void;
|
|
22
25
|
start(): void;
|
|
@@ -62,6 +65,26 @@ declare module "worker_threads" {
|
|
|
62
65
|
stdout?: boolean;
|
|
63
66
|
stderr?: boolean;
|
|
64
67
|
execArgv?: string[];
|
|
68
|
+
resourceLimits?: ResourceLimits;
|
|
69
|
+
/**
|
|
70
|
+
* Additional data to send in the first worker message.
|
|
71
|
+
*/
|
|
72
|
+
transferList?: TransferListItem[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface ResourceLimits {
|
|
76
|
+
/**
|
|
77
|
+
* The maximum size of a heap space for recently created objects.
|
|
78
|
+
*/
|
|
79
|
+
maxYoungGenerationSizeMb?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The maximum size of the main heap in MB.
|
|
82
|
+
*/
|
|
83
|
+
maxOldGenerationSizeMb?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The size of a pre-allocated memory range used for generated code.
|
|
86
|
+
*/
|
|
87
|
+
codeRangeSizeMb?: number;
|
|
65
88
|
}
|
|
66
89
|
|
|
67
90
|
class Worker extends EventEmitter {
|
|
@@ -72,7 +95,7 @@ declare module "worker_threads" {
|
|
|
72
95
|
|
|
73
96
|
constructor(filename: string, options?: WorkerOptions);
|
|
74
97
|
|
|
75
|
-
postMessage(value: any, transferList?:
|
|
98
|
+
postMessage(value: any, transferList?: TransferListItem[]): void;
|
|
76
99
|
ref(): void;
|
|
77
100
|
unref(): void;
|
|
78
101
|
/**
|