@types/node 10.17.31 → 10.17.35

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.
Files changed (50) hide show
  1. node v10.17/README.md +2 -2
  2. node v10.17/{ts3.1/async_hooks.d.ts → async_hooks.d.ts} +0 -0
  3. node v10.17/base.d.ts +1 -1
  4. node v10.17/{ts3.1/buffer.d.ts → buffer.d.ts} +0 -0
  5. node v10.17/{ts3.1/child_process.d.ts → child_process.d.ts} +0 -0
  6. node v10.17/{ts3.1/cluster.d.ts → cluster.d.ts} +0 -0
  7. node v10.17/{ts3.1/console.d.ts → console.d.ts} +0 -0
  8. node v10.17/{ts3.1/constants.d.ts → constants.d.ts} +0 -0
  9. node v10.17/{ts3.1/crypto.d.ts → crypto.d.ts} +0 -0
  10. node v10.17/{ts3.1/dgram.d.ts → dgram.d.ts} +0 -0
  11. node v10.17/{ts3.1/dns.d.ts → dns.d.ts} +0 -0
  12. node v10.17/{ts3.1/domain.d.ts → domain.d.ts} +0 -0
  13. node v10.17/{ts3.1/events.d.ts → events.d.ts} +0 -0
  14. node v10.17/{ts3.1/fs.d.ts → fs.d.ts} +0 -0
  15. node v10.17/{ts3.1/globals.d.ts → globals.d.ts } +1 -0
  16. node v10.17/{ts3.1/http.d.ts → http.d.ts} +0 -0
  17. node v10.17/{ts3.1/http2.d.ts → http2.d.ts} +0 -0
  18. node v10.17/{ts3.1/https.d.ts → https.d.ts} +0 -0
  19. node v10.17/index.d.ts +1 -0
  20. node v10.17/{ts3.1/inspector.d.ts → inspector.d.ts} +0 -0
  21. node v10.17/{ts3.1/module.d.ts → module.d.ts} +0 -0
  22. node v10.17/{ts3.1/net.d.ts → net.d.ts} +0 -0
  23. node v10.17/{ts3.1/os.d.ts → os.d.ts} +0 -0
  24. node v10.17/package.json +3 -8
  25. node v10.17/{ts3.1/path.d.ts → path.d.ts} +0 -0
  26. node v10.17/{ts3.1/perf_hooks.d.ts → perf_hooks.d.ts } +4 -76
  27. node v10.17/{ts3.1/process.d.ts → process.d.ts} +0 -0
  28. node v10.17/{ts3.1/punycode.d.ts → punycode.d.ts} +0 -0
  29. node v10.17/{ts3.1/querystring.d.ts → querystring.d.ts} +0 -0
  30. node v10.17/{ts3.1/readline.d.ts → readline.d.ts} +0 -0
  31. node v10.17/{ts3.1/repl.d.ts → repl.d.ts} +0 -0
  32. node v10.17/{ts3.1/stream.d.ts → stream.d.ts} +0 -0
  33. node v10.17/{ts3.1/string_decoder.d.ts → string_decoder.d.ts} +0 -0
  34. node v10.17/{ts3.1/timers.d.ts → timers.d.ts} +0 -0
  35. node v10.17/{ts3.1/tls.d.ts → tls.d.ts} +0 -0
  36. node v10.17/{ts3.1/trace_events.d.ts → trace_events.d.ts} +0 -0
  37. node v10.17/{ts3.1 → ts3.6}/assert.d.ts +0 -0
  38. node v10.17/ts3.6/base.d.ts +40 -7
  39. node v10.17/ts3.6/index.d.ts +1 -3
  40. node v10.17/{ts3.1/tty.d.ts → tty.d.ts} +0 -0
  41. node v10.17/{ts3.1/url.d.ts → url.d.ts} +0 -0
  42. node v10.17/{ts3.1/util.d.ts → util.d.ts } +4 -0
  43. node v10.17/{ts3.1/v8.d.ts → v8.d.ts} +0 -0
  44. node v10.17/{ts3.1/vm.d.ts → vm.d.ts} +0 -0
  45. node v10.17/{ts3.1/worker_threads.d.ts → worker_threads.d.ts} +0 -0
  46. node v10.17/{ts3.1/zlib.d.ts → zlib.d.ts} +0 -0
  47. node v10.17/ts3.1/base.d.ts +0 -40
  48. node v10.17/ts3.1/index.d.ts +0 -55
  49. node v10.17/ts3.6/globals.d.ts +0 -8
  50. node v10.17/ts3.6/util.d.ts +0 -15
node v10.17/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/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Sep 2020 17:17:30 GMT
11
+ * Last updated: Wed, 16 Sep 2020 21:16:07 GMT
12
12
  * Dependencies: none
13
- * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`, `Symbol`
13
+ * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
15
15
  # Credits
16
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), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [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), [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), [Jeremie Rodriguez](https://github.com/jeremiergz), [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), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
File without changes
node v10.17/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.1/base.d.ts" />
17
+ /// <reference path="ts3.6/base.d.ts" />
18
18
 
19
19
  // TypeScript 3.7-specific augmentations:
20
20
  /// <reference path="assert.d.ts" />
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -710,6 +710,7 @@ declare namespace NodeJS {
710
710
 
711
711
  interface HRTime {
712
712
  (time?: [number, number]): [number, number];
713
+ bigint(): bigint;
713
714
  }
714
715
 
715
716
  interface Process extends EventEmitter {
File without changes
File without changes
File without changes
node v10.17/index.d.ts CHANGED
@@ -42,3 +42,4 @@
42
42
  // Typically type modificatons should be made in base.d.ts instead of here
43
43
 
44
44
  /// <reference path="base.d.ts" />
45
+ /// <reference path="ts3.6/base.d.ts" />
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.31",
3
+ "version": "10.17.35",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -183,11 +183,6 @@
183
183
  "main": "",
184
184
  "types": "index.d.ts",
185
185
  "typesVersions": {
186
- "<=3.1": {
187
- "*": [
188
- "ts3.1/*"
189
- ]
190
- },
191
186
  "<=3.6": {
192
187
  "*": [
193
188
  "ts3.6/*"
@@ -201,6 +196,6 @@
201
196
  },
202
197
  "scripts": {},
203
198
  "dependencies": {},
204
- "typesPublisherContentHash": "688bf21b445acd471769b77ea9c3121669d9cc44c5a4d2006265869662f9cab0",
205
- "typeScriptVersion": "3.1"
199
+ "typesPublisherContentHash": "0db48b52b8c9265facc50ff1d8e74d3023169a4f5254577b59e35e3635a2f6e6",
200
+ "typeScriptVersion": "3.2"
206
201
  }
File without changes
@@ -35,64 +35,28 @@ declare module "perf_hooks" {
35
35
  interface PerformanceNodeTiming extends PerformanceEntry {
36
36
  /**
37
37
  * The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
38
+ * If bootstrapping has not yet finished, the property has the value of -1.
38
39
  */
39
40
  readonly bootstrapComplete: number;
40
41
 
41
- /**
42
- * The high resolution millisecond timestamp at which cluster processing ended.
43
- */
44
- readonly clusterSetupEnd: number;
45
-
46
- /**
47
- * The high resolution millisecond timestamp at which cluster processing started.
48
- */
49
- readonly clusterSetupStart: number;
50
-
51
42
  /**
52
43
  * The high resolution millisecond timestamp at which the Node.js event loop exited.
44
+ * If the event loop has not yet exited, the property has the value of -1.
45
+ * It can only have a value of not -1 in a handler of the 'exit' event.
53
46
  */
54
47
  readonly loopExit: number;
55
48
 
56
49
  /**
57
50
  * The high resolution millisecond timestamp at which the Node.js event loop started.
51
+ * If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.
58
52
  */
59
53
  readonly loopStart: number;
60
54
 
61
- /**
62
- * The high resolution millisecond timestamp at which main module load ended.
63
- */
64
- readonly moduleLoadEnd: number;
65
-
66
- /**
67
- * The high resolution millisecond timestamp at which main module load started.
68
- */
69
- readonly moduleLoadStart: number;
70
-
71
55
  /**
72
56
  * The high resolution millisecond timestamp at which the Node.js process was initialized.
73
57
  */
74
58
  readonly nodeStart: number;
75
59
 
76
- /**
77
- * The high resolution millisecond timestamp at which preload module load ended.
78
- */
79
- readonly preloadModuleLoadEnd: number;
80
-
81
- /**
82
- * The high resolution millisecond timestamp at which preload module load started.
83
- */
84
- readonly preloadModuleLoadStart: number;
85
-
86
- /**
87
- * The high resolution millisecond timestamp at which third_party_main processing ended.
88
- */
89
- readonly thirdPartyMainEnd: number;
90
-
91
- /**
92
- * The high resolution millisecond timestamp at which third_party_main processing started.
93
- */
94
- readonly thirdPartyMainStart: number;
95
-
96
60
  /**
97
61
  * The high resolution millisecond timestamp at which the V8 platform was initialized.
98
62
  */
@@ -100,13 +64,6 @@ declare module "perf_hooks" {
100
64
  }
101
65
 
102
66
  interface Performance {
103
- /**
104
- * If name is not provided, removes all PerformanceFunction objects from the Performance Timeline.
105
- * If name is provided, removes entries with name.
106
- * @param name
107
- */
108
- clearFunctions(name?: string): void;
109
-
110
67
  /**
111
68
  * If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
112
69
  * If name is provided, removes only the named mark.
@@ -114,35 +71,6 @@ declare module "perf_hooks" {
114
71
  */
115
72
  clearMarks(name?: string): void;
116
73
 
117
- /**
118
- * If name is not provided, removes all PerformanceMeasure objects from the Performance Timeline.
119
- * If name is provided, removes only objects whose performanceEntry.name matches name.
120
- */
121
- clearMeasures(name?: string): void;
122
-
123
- /**
124
- * Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
125
- * @return list of all PerformanceEntry objects
126
- */
127
- getEntries(): PerformanceEntry[];
128
-
129
- /**
130
- * Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
131
- * whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
132
- * @param name
133
- * @param type
134
- * @return list of all PerformanceEntry objects
135
- */
136
- getEntriesByName(name: string, type?: string): PerformanceEntry[];
137
-
138
- /**
139
- * Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
140
- * whose performanceEntry.entryType is equal to type.
141
- * @param type
142
- * @return list of all PerformanceEntry objects
143
- */
144
- getEntriesByType(type: string): PerformanceEntry[];
145
-
146
74
  /**
147
75
  * Creates a new PerformanceMark entry in the Performance Timeline.
148
76
  * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,10 +12,43 @@
12
12
  /// <reference lib="esnext.intl" />
13
13
  /// <reference lib="esnext.bigint" />
14
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.1/base.d.ts" />
18
-
19
- // TypeScript 3.2-specific augmentations:
20
- /// <reference path="util.d.ts" />
21
- /// <reference path="globals.d.ts" />
15
+ // base definitions for all NodeJS modules that are not specific to any version of TypeScript
16
+ /// <reference path="../globals.d.ts" />
17
+ /// <reference path="../async_hooks.d.ts" />
18
+ /// <reference path="../buffer.d.ts" />
19
+ /// <reference path="../child_process.d.ts" />
20
+ /// <reference path="../cluster.d.ts" />
21
+ /// <reference path="../console.d.ts" />
22
+ /// <reference path="../constants.d.ts" />
23
+ /// <reference path="../crypto.d.ts" />
24
+ /// <reference path="../dgram.d.ts" />
25
+ /// <reference path="../dns.d.ts" />
26
+ /// <reference path="../domain.d.ts" />
27
+ /// <reference path="../events.d.ts" />
28
+ /// <reference path="../fs.d.ts" />
29
+ /// <reference path="../http.d.ts" />
30
+ /// <reference path="../http2.d.ts" />
31
+ /// <reference path="../https.d.ts" />
32
+ /// <reference path="../inspector.d.ts" />
33
+ /// <reference path="../module.d.ts" />
34
+ /// <reference path="../net.d.ts" />
35
+ /// <reference path="../os.d.ts" />
36
+ /// <reference path="../path.d.ts" />
37
+ /// <reference path="../perf_hooks.d.ts" />
38
+ /// <reference path="../process.d.ts" />
39
+ /// <reference path="../punycode.d.ts" />
40
+ /// <reference path="../querystring.d.ts" />
41
+ /// <reference path="../readline.d.ts" />
42
+ /// <reference path="../repl.d.ts" />
43
+ /// <reference path="../stream.d.ts" />
44
+ /// <reference path="../string_decoder.d.ts" />
45
+ /// <reference path="../timers.d.ts" />
46
+ /// <reference path="../tls.d.ts" />
47
+ /// <reference path="../trace_events.d.ts" />
48
+ /// <reference path="../tty.d.ts" />
49
+ /// <reference path="../url.d.ts" />
50
+ /// <reference path="../util.d.ts" />
51
+ /// <reference path="../v8.d.ts" />
52
+ /// <reference path="../vm.d.ts" />
53
+ /// <reference path="../worker_threads.d.ts" />
54
+ /// <reference path="../zlib.d.ts" />
@@ -3,6 +3,4 @@
3
3
  // Typically type modifications should be made in base.d.ts instead of here
4
4
 
5
5
  /// <reference path="base.d.ts" />
6
-
7
- // tslint:disable-next-line:no-bad-reference
8
- /// <reference path="../ts3.1/assert.d.ts" />
6
+ /// <reference path="assert.d.ts" />
File without changes
File without changes
@@ -18,6 +18,7 @@ declare module "util" {
18
18
  let colors: {
19
19
  [color: string]: [number, number] | undefined
20
20
  };
21
+ const custom: unique symbol;
21
22
  let styles: {
22
23
  [style: string]: string | undefined
23
24
  };
@@ -109,11 +110,14 @@ declare module "util" {
109
110
  function promisify(fn: Function): Function;
110
111
 
111
112
  namespace types {
113
+ const custom: unique symbol;
112
114
  function isAnyArrayBuffer(object: any): boolean;
113
115
  function isArgumentsObject(object: any): object is IArguments;
114
116
  function isArrayBuffer(object: any): object is ArrayBuffer;
115
117
  function isArrayBufferView(object: any): object is ArrayBufferView;
116
118
  function isAsyncFunction(object: any): boolean;
119
+ function isBigInt64Array(value: any): value is BigInt64Array;
120
+ function isBigUint64Array(value: any): value is BigUint64Array;
117
121
  function isBooleanObject(object: any): object is Boolean;
118
122
  function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
119
123
  function isDataView(object: any): object is DataView;
File without changes
File without changes
File without changes
@@ -1,40 +0,0 @@
1
- // base definitions for all NodeJS modules that are not specific to any version of TypeScript
2
- /// <reference path="globals.d.ts" />
3
- /// <reference path="async_hooks.d.ts" />
4
- /// <reference path="buffer.d.ts" />
5
- /// <reference path="child_process.d.ts" />
6
- /// <reference path="cluster.d.ts" />
7
- /// <reference path="console.d.ts" />
8
- /// <reference path="constants.d.ts" />
9
- /// <reference path="crypto.d.ts" />
10
- /// <reference path="dgram.d.ts" />
11
- /// <reference path="dns.d.ts" />
12
- /// <reference path="domain.d.ts" />
13
- /// <reference path="events.d.ts" />
14
- /// <reference path="fs.d.ts" />
15
- /// <reference path="http.d.ts" />
16
- /// <reference path="http2.d.ts" />
17
- /// <reference path="https.d.ts" />
18
- /// <reference path="inspector.d.ts" />
19
- /// <reference path="module.d.ts" />
20
- /// <reference path="net.d.ts" />
21
- /// <reference path="os.d.ts" />
22
- /// <reference path="path.d.ts" />
23
- /// <reference path="perf_hooks.d.ts" />
24
- /// <reference path="process.d.ts" />
25
- /// <reference path="punycode.d.ts" />
26
- /// <reference path="querystring.d.ts" />
27
- /// <reference path="readline.d.ts" />
28
- /// <reference path="repl.d.ts" />
29
- /// <reference path="stream.d.ts" />
30
- /// <reference path="string_decoder.d.ts" />
31
- /// <reference path="timers.d.ts" />
32
- /// <reference path="tls.d.ts" />
33
- /// <reference path="trace_events.d.ts" />
34
- /// <reference path="tty.d.ts" />
35
- /// <reference path="url.d.ts" />
36
- /// <reference path="util.d.ts" />
37
- /// <reference path="v8.d.ts" />
38
- /// <reference path="vm.d.ts" />
39
- /// <reference path="worker_threads.d.ts" />
40
- /// <reference path="zlib.d.ts" />
@@ -1,55 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.1.
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.1/index.d.ts - Definitions specific to TypeScript 3.1
7
-
8
- // NOTE: Augmentations for TypeScript 3.1 and later should use individual files for overrides
9
- // within the respective ~/ts3.1 (or later) folder. However, this is disallowed for versions
10
- // prior to TypeScript 3.1, so the older definitions will be found here.
11
-
12
- // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
13
- /// <reference path="base.d.ts" />
14
-
15
- // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in +ts3.7
16
- /// <reference path="assert.d.ts" />
17
-
18
- // TypeScript 2.1-specific augmentations:
19
-
20
- // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
21
- interface MapConstructor { }
22
- interface WeakMapConstructor { }
23
- interface SetConstructor { }
24
- interface WeakSetConstructor { }
25
- interface Set<T> {}
26
- interface ReadonlySet<T> {}
27
- interface IteratorResult<T> { }
28
- interface Iterable<T> { }
29
- interface Iterator<T> {
30
- next(value?: any): IteratorResult<T>;
31
- }
32
- interface IterableIterator<T> { }
33
- interface AsyncIterableIterator<T> {}
34
- interface SymbolConstructor {
35
- readonly iterator: symbol;
36
- readonly asyncIterator: symbol;
37
- }
38
- declare var Symbol: SymbolConstructor;
39
- interface SharedArrayBuffer {
40
- readonly byteLength: number;
41
- slice(begin?: number, end?: number): SharedArrayBuffer;
42
- }
43
-
44
- declare module "util" {
45
- namespace inspect {
46
- const custom: symbol;
47
- }
48
- namespace promisify {
49
- const custom: symbol;
50
- }
51
- namespace types {
52
- function isBigInt64Array(value: any): boolean;
53
- function isBigUint64Array(value: any): boolean;
54
- }
55
- }
@@ -1,8 +0,0 @@
1
- // tslint:disable-next-line:no-bad-reference
2
- /// <reference path="../ts3.1/globals.d.ts" />
3
-
4
- declare namespace NodeJS {
5
- interface HRTime {
6
- bigint(): bigint;
7
- }
8
- }
@@ -1,15 +0,0 @@
1
- // tslint:disable-next-line:no-bad-reference
2
- /// <reference path="../ts3.1/util.d.ts" />
3
-
4
- declare module "util" {
5
- namespace inspect {
6
- const custom: unique symbol;
7
- }
8
- namespace promisify {
9
- const custom: unique symbol;
10
- }
11
- namespace types {
12
- function isBigInt64Array(value: any): value is BigInt64Array;
13
- function isBigUint64Array(value: any): value is BigUint64Array;
14
- }
15
- }