@types/node 14.14.43 → 14.17.1

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 (52) hide show
  1. {node v14.14 → node v14.17}/LICENSE +0 -0
  2. {node v14.14 → node v14.17}/README.md +2 -2
  3. {node v14.14 → node v14.17}/assert.d.ts +0 -5
  4. {node v14.14 → node v14.17}/async_hooks.d.ts +2 -9
  5. {node v14.14 → node v14.17}/base.d.ts +0 -0
  6. {node v14.14 → node v14.17}/buffer.d.ts +0 -4
  7. {node v14.14 → node v14.17}/child_process.d.ts +4 -8
  8. {node v14.14 → node v14.17}/cluster.d.ts +3 -7
  9. {node v14.14 → node v14.17}/console.d.ts +1 -5
  10. node v14.17/constants.d.ts +13 -0
  11. {node v14.14 → node v14.17}/crypto.d.ts +15 -5
  12. {node v14.14 → node v14.17}/dgram.d.ts +3 -7
  13. {node v14.14 → node v14.17}/dns.d.ts +0 -4
  14. {node v14.14 → node v14.17}/domain.d.ts +1 -5
  15. {node v14.14 → node v14.17}/events.d.ts +0 -5
  16. {node v14.14 → node v14.17}/fs/promises.d.ts +1 -5
  17. {node v14.14 → node v14.17}/fs.d.ts +4 -8
  18. {node v14.14 → node v14.17}/globals.d.ts +0 -0
  19. {node v14.14 → node v14.17}/globals.global.d.ts +0 -0
  20. {node v14.14 → node v14.17}/http.d.ts +4 -8
  21. {node v14.14 → node v14.17}/http2.d.ts +8 -12
  22. {node v14.14 → node v14.17}/https.d.ts +3 -7
  23. {node v14.14 → node v14.17}/index.d.ts +2 -1
  24. {node v14.14 → node v14.17}/inspector.d.ts +1 -8
  25. {node v14.14 → node v14.17}/module.d.ts +1 -6
  26. {node v14.14 → node v14.17}/net.d.ts +7 -9
  27. {node v14.14 → node v14.17}/os.d.ts +0 -4
  28. {node v14.14 → node v14.17}/package.json +7 -2
  29. {node v14.14 → node v14.17}/path.d.ts +0 -5
  30. {node v14.14 → node v14.17}/perf_hooks.d.ts +1 -5
  31. {node v14.14 → node v14.17}/process.d.ts +1 -5
  32. {node v14.14 → node v14.17}/punycode.d.ts +0 -11
  33. {node v14.14 → node v14.17}/querystring.d.ts +0 -4
  34. {node v14.14 → node v14.17}/readline.d.ts +1 -5
  35. {node v14.14 → node v14.17}/repl.d.ts +6 -10
  36. {node v14.14 → node v14.17}/stream.d.ts +1 -6
  37. {node v14.14 → node v14.17}/string_decoder.d.ts +0 -4
  38. {node v14.14 → node v14.17}/timers.d.ts +0 -4
  39. {node v14.14 → node v14.17}/tls.d.ts +1 -5
  40. {node v14.14 → node v14.17}/trace_events.d.ts +0 -4
  41. {node v14.14 → node v14.17}/ts3.6/assert.d.ts +0 -5
  42. {node v14.14 → node v14.17}/ts3.6/base.d.ts +0 -0
  43. {node v14.14 → node v14.17}/ts3.6/index.d.ts +0 -0
  44. {node v14.14 → node v14.17}/tty.d.ts +1 -5
  45. {node v14.14 → node v14.17}/url.d.ts +1 -5
  46. {node v14.14 → node v14.17}/util.d.ts +0 -4
  47. {node v14.14 → node v14.17}/v8.d.ts +1 -5
  48. {node v14.14 → node v14.17}/vm.d.ts +1 -5
  49. {node v14.14 → node v14.17}/wasi.d.ts +0 -4
  50. {node v14.14 → node v14.17}/worker_threads.d.ts +5 -9
  51. {node v14.14 → node v14.17}/zlib.d.ts +1 -5
  52. node v14.14/constants.d.ts +0 -19
File without changes
@@ -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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 27 Apr 2021 14:31:26 GMT
11
+ * Last updated: Tue, 25 May 2021 00:01:39 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__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), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [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), [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), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [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), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [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), [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), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [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), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), and [Bond](https://github.com/bondz).
@@ -1,8 +1,3 @@
1
- declare module 'node:assert' {
2
- import assert = require('assert');
3
- export = assert;
4
- }
5
-
6
1
  declare module 'assert' {
7
2
  /** An alias of `assert.ok()`. */
8
3
  function assert(value: any, message?: string | Error): asserts value;
@@ -1,10 +1,3 @@
1
- /**
2
- * Async Hooks module: https://nodejs.org/api/async_hooks.html
3
- */
4
- declare module 'node:async_hooks' {
5
- export * from 'async_hooks';
6
- }
7
-
8
1
  /**
9
2
  * Async Hooks module: https://nodejs.org/api/async_hooks.html
10
3
  */
@@ -92,7 +85,7 @@ declare module 'async_hooks' {
92
85
  interface AsyncResourceOptions {
93
86
  /**
94
87
  * The ID of the execution context that created this async event.
95
- * Default: `executionAsyncId()`
88
+ * @default executionAsyncId()
96
89
  */
97
90
  triggerAsyncId?: number;
98
91
 
@@ -101,7 +94,7 @@ declare module 'async_hooks' {
101
94
  * This usually does not need to be set (even if `emitDestroy` is called
102
95
  * manually), unless the resource's `asyncId` is retrieved and the
103
96
  * sensitive API's `emitDestroy` is called with it.
104
- * Default: `false`
97
+ * @default false
105
98
  */
106
99
  requireManualDestroy?: boolean;
107
100
  }
File without changes
@@ -1,7 +1,3 @@
1
- declare module 'node:buffer' {
2
- export * from 'buffer';
3
- }
4
-
5
1
  declare module 'buffer' {
6
2
  export const INSPECT_MAX_BYTES: number;
7
3
  export const kMaxLength: number;
@@ -1,12 +1,8 @@
1
- declare module 'node:child_process' {
2
- export * from 'child_process';
3
- }
4
-
5
1
  declare module 'child_process' {
6
- import { BaseEncodingOptions } from 'node:fs';
7
- import * as events from 'node:events';
8
- import * as net from 'node:net';
9
- import { Writable, Readable, Stream, Pipe } from 'node:stream';
2
+ import { BaseEncodingOptions } from 'fs';
3
+ import * as events from 'events';
4
+ import * as net from 'net';
5
+ import { Writable, Readable, Stream, Pipe } from 'stream';
10
6
 
11
7
  type Serializable = string | object | number | boolean;
12
8
  type SendHandle = net.Socket | net.Server;
@@ -1,11 +1,7 @@
1
- declare module 'node:cluster' {
2
- export * from 'cluster';
3
- }
4
-
5
1
  declare module 'cluster' {
6
- import * as child from 'node:child_process';
7
- import EventEmitter = require('node:events');
8
- import * as net from 'node:net';
2
+ import * as child from 'child_process';
3
+ import EventEmitter = require('events');
4
+ import * as net from 'net';
9
5
 
10
6
  // interfaces
11
7
  interface ClusterSettings {
@@ -1,9 +1,5 @@
1
- declare module 'node:console' {
2
- export = console;
3
- }
4
-
5
1
  declare module 'console' {
6
- import { InspectOptions } from 'node:util';
2
+ import { InspectOptions } from 'util';
7
3
 
8
4
  global {
9
5
  // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
@@ -0,0 +1,13 @@
1
+ /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
2
+ declare module 'constants' {
3
+ import { constants as osConstants, SignalConstants } from 'os';
4
+ import { constants as cryptoConstants } from 'crypto';
5
+ import { constants as fsConstants } from 'fs';
6
+
7
+ const exp: typeof osConstants.errno &
8
+ typeof osConstants.priority &
9
+ SignalConstants &
10
+ typeof cryptoConstants &
11
+ typeof fsConstants;
12
+ export = exp;
13
+ }
@@ -1,9 +1,5 @@
1
- declare module 'node:crypto' {
2
- export * from 'crypto';
3
- }
4
-
5
1
  declare module 'crypto' {
6
- import * as stream from 'node:stream';
2
+ import * as stream from 'stream';
7
3
 
8
4
  interface Certificate {
9
5
  /**
@@ -452,6 +448,20 @@ declare module 'crypto' {
452
448
  callback: (err: Error | null, buf: T) => void,
453
449
  ): void;
454
450
 
451
+ interface RandomUUIDOptions {
452
+ /**
453
+ * By default, to improve performance,
454
+ * Node.js will pre-emptively generate and persistently cache enough
455
+ * random data to generate up to 128 random UUIDs. To generate a UUID
456
+ * without using the cache, set `disableEntropyCache` to `true`.
457
+ *
458
+ * @default `false`
459
+ */
460
+ disableEntropyCache?: boolean;
461
+ }
462
+
463
+ function randomUUID(options?: RandomUUIDOptions): string;
464
+
455
465
  interface ScryptOptions {
456
466
  cost?: number;
457
467
  blockSize?: number;
@@ -1,11 +1,7 @@
1
- declare module 'node:dgram' {
2
- export * from 'dgram';
3
- }
4
-
5
1
  declare module 'dgram' {
6
- import { AddressInfo } from 'node:net';
7
- import * as dns from 'node:dns';
8
- import EventEmitter = require('node:events');
2
+ import { AddressInfo } from 'net';
3
+ import * as dns from 'dns';
4
+ import EventEmitter = require('events');
9
5
 
10
6
  interface RemoteInfo {
11
7
  address: string;
@@ -1,7 +1,3 @@
1
- declare module 'node:dns' {
2
- export * from 'dns';
3
- }
4
-
5
1
  declare module 'dns' {
6
2
  // Supported getaddrinfo flags.
7
3
  const ADDRCONFIG: number;
@@ -1,9 +1,5 @@
1
- declare module 'node:domain' {
2
- export * from 'domain';
3
- }
4
-
5
1
  declare module 'domain' {
6
- import EventEmitter = require('node:events');
2
+ import EventEmitter = require('events');
7
3
 
8
4
  global {
9
5
  namespace NodeJS {
@@ -1,8 +1,3 @@
1
- declare module 'node:events' {
2
- import EventEmitter = require('events');
3
- export = EventEmitter;
4
- }
5
-
6
1
  declare module 'events' {
7
2
  interface EventEmitterOptions {
8
3
  /**
@@ -1,8 +1,4 @@
1
1
  declare module 'fs/promises' {
2
- export * from 'node:fs/promises';
3
- }
4
-
5
- declare module 'node:fs/promises' {
6
2
  import {
7
3
  Stats,
8
4
  BigIntStats,
@@ -20,7 +16,7 @@ declare module 'node:fs/promises' {
20
16
  BufferEncodingOption,
21
17
  OpenMode,
22
18
  Mode,
23
- } from 'node:fs';
19
+ } from 'fs';
24
20
 
25
21
  interface FileHandle {
26
22
  /**
@@ -1,12 +1,8 @@
1
- declare module 'node:fs' {
2
- export * from 'fs';
3
- }
4
-
5
1
  declare module 'fs' {
6
- import * as stream from 'node:stream';
7
- import EventEmitter = require('node:events');
8
- import { URL } from 'node:url';
9
- import * as promises from 'node:fs/promises';
2
+ import * as stream from 'stream';
3
+ import EventEmitter = require('events');
4
+ import { URL } from 'url';
5
+ import * as promises from 'fs/promises';
10
6
 
11
7
  export { promises };
12
8
  /**
File without changes
File without changes
@@ -1,11 +1,7 @@
1
- declare module 'node:http' {
2
- export * from 'http';
3
- }
4
-
5
1
  declare module 'http' {
6
- import * as stream from 'node:stream';
7
- import { URL } from 'node:url';
8
- import { Socket, Server as NetServer } from 'node:net';
2
+ import * as stream from 'stream';
3
+ import { URL } from 'url';
4
+ import { Socket, Server as NetServer } from 'net';
9
5
 
10
6
  // incoming headers will never contain number
11
7
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
@@ -169,7 +165,7 @@ declare module 'http' {
169
165
  finished: boolean;
170
166
  headersSent: boolean;
171
167
  /**
172
- * @deprecate Use `socket` instead.
168
+ * @deprecated Use `socket` instead.
173
169
  */
174
170
  connection: Socket | null;
175
171
  socket: Socket | null;
@@ -1,22 +1,18 @@
1
- declare module 'node:http2' {
2
- export * from 'http2';
3
- }
4
-
5
1
  declare module 'http2' {
6
- import EventEmitter = require('node:events');
7
- import * as fs from 'node:fs';
8
- import * as net from 'node:net';
9
- import * as stream from 'node:stream';
10
- import * as tls from 'node:tls';
11
- import * as url from 'node:url';
2
+ import EventEmitter = require('events');
3
+ import * as fs from 'fs';
4
+ import * as net from 'net';
5
+ import * as stream from 'stream';
6
+ import * as tls from 'tls';
7
+ import * as url from 'url';
12
8
 
13
9
  import {
14
10
  IncomingHttpHeaders as Http1IncomingHttpHeaders,
15
11
  OutgoingHttpHeaders,
16
12
  IncomingMessage,
17
13
  ServerResponse,
18
- } from 'node:http';
19
- export { OutgoingHttpHeaders } from 'node:http';
14
+ } from 'http';
15
+ export { OutgoingHttpHeaders } from 'http';
20
16
 
21
17
  export interface IncomingHttpStatusHeader {
22
18
  ":status"?: number;
@@ -1,11 +1,7 @@
1
- declare module 'node:https' {
2
- export * from 'https';
3
- }
4
-
5
1
  declare module 'https' {
6
- import * as tls from 'node:tls';
7
- import * as http from 'node:http';
8
- import { URL } from 'node:url';
2
+ import * as tls from 'tls';
3
+ import * as http from 'http';
4
+ import { URL } from 'url';
9
5
 
10
6
  type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
11
7
 
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 14.14
1
+ // Type definitions for non-npm package Node.js 14.17
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -41,6 +41,7 @@
41
41
  // Jason Kwok <https://github.com/JasonHK>
42
42
  // Victor Perin <https://github.com/victorperin>
43
43
  // Yongsheng Zhang <https://github.com/ZYSzys>
44
+ // Bond <https://github.com/bondz>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  // NOTE: These definitions support NodeJS and TypeScript 3.7.
@@ -7,18 +7,11 @@
7
7
 
8
8
  // tslint:disable:max-line-length
9
9
 
10
- /**
11
- * The inspector module provides an API for interacting with the V8 inspector.
12
- */
13
- declare module 'node:inspector' {
14
- export * from 'inspector';
15
- }
16
-
17
10
  /**
18
11
  * The inspector module provides an API for interacting with the V8 inspector.
19
12
  */
20
13
  declare module 'inspector' {
21
- import EventEmitter = require('node:events');
14
+ import EventEmitter = require('events');
22
15
 
23
16
  interface InspectorNotification<T> {
24
17
  method: string;
@@ -1,10 +1,5 @@
1
- declare module 'node:module' {
2
- import Module = require('module');
3
- export = Module;
4
- }
5
-
6
1
  declare module 'module' {
7
- import { URL } from 'node:url';
2
+ import { URL } from 'url';
8
3
  namespace Module {
9
4
  /**
10
5
  * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
@@ -1,11 +1,7 @@
1
- declare module 'node:net' {
2
- export * from 'net';
3
- }
4
-
5
1
  declare module 'net' {
6
- import * as stream from 'node:stream';
7
- import EventEmitter = require('node:events');
8
- import * as dns from 'node:dns';
2
+ import * as stream from 'stream';
3
+ import EventEmitter = require('events');
4
+ import * as dns from 'dns';
9
5
 
10
6
  type LookupFunction = (
11
7
  hostname: string,
@@ -188,12 +184,14 @@ declare module 'net' {
188
184
 
189
185
  interface ServerOpts {
190
186
  /**
191
- * Indicates whether half-opened TCP connections are allowed. __Default:__ `false`.
187
+ * Indicates whether half-opened TCP connections are allowed.
188
+ * @default false
192
189
  */
193
190
  allowHalfOpen?: boolean;
194
191
 
195
192
  /**
196
- * Indicates whether the socket should be paused on incoming connections. __Default:__ `false`.
193
+ * Indicates whether the socket should be paused on incoming connections.
194
+ * @default false
197
195
  */
198
196
  pauseOnConnect?: boolean;
199
197
  }
@@ -1,7 +1,3 @@
1
- declare module 'node:os' {
2
- export * from 'os';
3
- }
4
-
5
1
  declare module 'os' {
6
2
  interface CpuInfo {
7
3
  model: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.14.43",
3
+ "version": "14.17.1",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -208,6 +208,11 @@
208
208
  "name": "Yongsheng Zhang",
209
209
  "url": "https://github.com/ZYSzys",
210
210
  "githubUsername": "ZYSzys"
211
+ },
212
+ {
213
+ "name": "Bond",
214
+ "url": "https://github.com/bondz",
215
+ "githubUsername": "bondz"
211
216
  }
212
217
  ],
213
218
  "main": "",
@@ -226,6 +231,6 @@
226
231
  },
227
232
  "scripts": {},
228
233
  "dependencies": {},
229
- "typesPublisherContentHash": "fc1a28d78fbd1e7a7802a1d8a64710bcc63ae958b8930b570ace3252fba6747e",
234
+ "typesPublisherContentHash": "4706dd122f5af0d073eae1d205b8b53d25bf5cd6bd0b8d79cc840a2269c61635",
230
235
  "typeScriptVersion": "3.5"
231
236
  }
@@ -1,8 +1,3 @@
1
- declare module 'node:path' {
2
- import path = require('path');
3
- export = path;
4
- }
5
-
6
1
  declare module 'path' {
7
2
  namespace path {
8
3
  /**
@@ -1,9 +1,5 @@
1
- declare module 'node:perf_hooks' {
2
- export * from 'perf_hooks';
3
- }
4
-
5
1
  declare module 'perf_hooks' {
6
- import { AsyncResource } from 'node:async_hooks';
2
+ import { AsyncResource } from 'async_hooks';
7
3
 
8
4
  type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
9
5
 
@@ -1,9 +1,5 @@
1
- declare module 'node:process' {
2
- export = process;
3
- }
4
-
5
1
  declare module 'process' {
6
- import * as tty from 'node:tty';
2
+ import * as tty from 'tty';
7
3
 
8
4
  global {
9
5
  var process: NodeJS.Process;
@@ -1,14 +1,3 @@
1
- /**
2
- * @deprecated since v7.0.0
3
- * The version of the punycode module bundled in Node.js is being deprecated.
4
- * In a future major version of Node.js this module will be removed.
5
- * Users currently depending on the punycode module should switch to using
6
- * the userland-provided Punycode.js module instead.
7
- */
8
- declare module 'node:punycode' {
9
- export * from 'punycode';
10
- }
11
-
12
1
  /**
13
2
  * @deprecated since v7.0.0
14
3
  * The version of the punycode module bundled in Node.js is being deprecated.
@@ -1,7 +1,3 @@
1
- declare module 'node:querystring' {
2
- export * from 'querystring';
3
- }
4
-
5
1
  declare module 'querystring' {
6
2
  interface StringifyOptions {
7
3
  encodeURIComponent?: (str: string) => string;
@@ -1,9 +1,5 @@
1
- declare module 'node:readline' {
2
- export * from 'readline';
3
- }
4
-
5
1
  declare module 'readline' {
6
- import EventEmitter = require('node:events');
2
+ import EventEmitter = require('events');
7
3
 
8
4
  interface Key {
9
5
  sequence?: string;
@@ -1,26 +1,22 @@
1
- declare module 'node:repl' {
2
- export * from 'repl';
3
- }
4
-
5
1
  declare module 'repl' {
6
- import { Interface, Completer, AsyncCompleter } from 'node:readline';
7
- import { Context } from 'node:vm';
8
- import { InspectOptions } from 'node:util';
2
+ import { Interface, Completer, AsyncCompleter } from 'readline';
3
+ import { Context } from 'vm';
4
+ import { InspectOptions } from 'util';
9
5
 
10
6
  interface ReplOptions {
11
7
  /**
12
8
  * The input prompt to display.
13
- * Default: `"> "`
9
+ * @default "> "
14
10
  */
15
11
  prompt?: string;
16
12
  /**
17
13
  * The `Readable` stream from which REPL input will be read.
18
- * Default: `process.stdin`
14
+ * @default process.stdin
19
15
  */
20
16
  input?: NodeJS.ReadableStream;
21
17
  /**
22
18
  * The `Writable` stream to which REPL output will be written.
23
- * Default: `process.stdout`
19
+ * @default process.stdout
24
20
  */
25
21
  output?: NodeJS.WritableStream;
26
22
  /**
@@ -1,10 +1,5 @@
1
- declare module 'node:stream' {
2
- import Stream = require('stream');
3
- export = Stream;
4
- }
5
-
6
1
  declare module 'stream' {
7
- import EventEmitter = require('node:events');
2
+ import EventEmitter = require('events');
8
3
 
9
4
  class internal extends EventEmitter {
10
5
  pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
@@ -1,7 +1,3 @@
1
- declare module 'node:string_decoder' {
2
- export * from 'string_decoder';
3
- }
4
-
5
1
  declare module 'string_decoder' {
6
2
  class StringDecoder {
7
3
  constructor(encoding?: BufferEncoding);
@@ -1,7 +1,3 @@
1
- declare module 'node:timers' {
2
- export * from 'timers';
3
- }
4
-
5
1
  declare module 'timers' {
6
2
  function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
7
3
  namespace setTimeout {
@@ -1,9 +1,5 @@
1
- declare module 'node:tls' {
2
- export * from 'tls';
3
- }
4
-
5
1
  declare module 'tls' {
6
- import * as net from 'node:net';
2
+ import * as net from 'net';
7
3
 
8
4
  const CLIENT_RENEG_LIMIT: number;
9
5
  const CLIENT_RENEG_WINDOW: number;
@@ -1,7 +1,3 @@
1
- declare module 'node:trace_events' {
2
- export * from 'trace_events';
3
- }
4
-
5
1
  declare module 'trace_events' {
6
2
  /**
7
3
  * The `Tracing` object is used to enable or disable tracing for sets of
@@ -1,8 +1,3 @@
1
- declare module 'node:assert' {
2
- import assert = require('assert');
3
- export = assert;
4
- }
5
-
6
1
  declare module 'assert' {
7
2
  /** An alias of `assert.ok()`. */
8
3
  function assert(value: any, message?: string | Error): void;
File without changes
File without changes
@@ -1,9 +1,5 @@
1
- declare module 'node:tty' {
2
- export * from 'tty';
3
- }
4
-
5
1
  declare module 'tty' {
6
- import * as net from 'node:net';
2
+ import * as net from 'net';
7
3
 
8
4
  function isatty(fd: number): boolean;
9
5
  class ReadStream extends net.Socket {
@@ -1,9 +1,5 @@
1
- declare module 'node:url' {
2
- export * from 'url';
3
- }
4
-
5
1
  declare module 'url' {
6
- import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
2
+ import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
7
3
 
8
4
  // Input to `url.format`
9
5
  interface UrlObject {
@@ -1,7 +1,3 @@
1
- declare module 'node:util' {
2
- export * from 'util';
3
- }
4
-
5
1
  declare module 'util' {
6
2
  interface InspectOptions extends NodeJS.InspectOptions { }
7
3
  type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
@@ -1,9 +1,5 @@
1
- declare module 'node:v8' {
2
- export * from 'v8';
3
- }
4
-
5
1
  declare module 'v8' {
6
- import { Readable } from 'node:stream';
2
+ import { Readable } from 'stream';
7
3
 
8
4
  interface HeapSpaceInfo {
9
5
  space_name: string;
@@ -1,7 +1,3 @@
1
- declare module 'node:vm' {
2
- export * from 'vm';
3
- }
4
-
5
1
  declare module 'vm' {
6
2
  interface Context extends NodeJS.Dict<any> { }
7
3
  interface BaseOptions {
@@ -17,7 +13,7 @@ declare module 'vm' {
17
13
  lineOffset?: number;
18
14
  /**
19
15
  * Specifies the column number offset that is displayed in stack traces produced by this script.
20
- * Default: `0`
16
+ * @default 0
21
17
  */
22
18
  columnOffset?: number;
23
19
  }
@@ -1,7 +1,3 @@
1
- declare module 'node:wasi' {
2
- export * from 'wasi';
3
- }
4
-
5
1
  declare module 'wasi' {
6
2
  interface WASIOptions {
7
3
  /**
@@ -1,13 +1,9 @@
1
- declare module 'node:worker_threads' {
2
- export * from 'worker_threads';
3
- }
4
-
5
1
  declare module 'worker_threads' {
6
- import { Context } from 'node:vm';
7
- import EventEmitter = require('node:events');
8
- import { Readable, Writable } from 'node:stream';
9
- import { URL } from 'node:url';
10
- import { FileHandle } from 'node:fs/promises';
2
+ import { Context } from 'vm';
3
+ import EventEmitter = require('events');
4
+ import { Readable, Writable } from 'stream';
5
+ import { URL } from 'url';
6
+ import { FileHandle } from 'fs/promises';
11
7
 
12
8
  const isMainThread: boolean;
13
9
  const parentPort: null | MessagePort;
@@ -1,9 +1,5 @@
1
- declare module 'node:zlib' {
2
- export * from 'zlib';
3
- }
4
-
5
1
  declare module 'zlib' {
6
- import * as stream from 'node:stream';
2
+ import * as stream from 'stream';
7
3
 
8
4
  interface ZlibOptions {
9
5
  /**
@@ -1,19 +0,0 @@
1
- /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
2
- declare module 'node:constants' {
3
- import exp = require('constants');
4
- export = exp;
5
- }
6
-
7
- /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
8
- declare module 'constants' {
9
- import { constants as osConstants, SignalConstants } from 'node:os';
10
- import { constants as cryptoConstants } from 'node:crypto';
11
- import { constants as fsConstants } from 'node:fs';
12
-
13
- const exp: typeof osConstants.errno &
14
- typeof osConstants.priority &
15
- SignalConstants &
16
- typeof cryptoConstants &
17
- typeof fsConstants;
18
- export = exp;
19
- }