@types/node 14.18.59 → 14.18.61

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 (91) hide show
  1. node v14.18/LICENSE +0 -0
  2. node v14.18/README.md +1 -1
  3. node v14.18/assert.d.ts +3 -3
  4. node v14.18/async_hooks.d.ts +3 -3
  5. node v14.18/buffer.d.ts +3 -3
  6. node v14.18/child_process.d.ts +3 -3
  7. node v14.18/cluster.d.ts +3 -3
  8. node v14.18/console.d.ts +0 -0
  9. node v14.18/constants.d.ts +3 -3
  10. node v14.18/crypto.d.ts +3 -3
  11. node v14.18/dgram.d.ts +3 -3
  12. node v14.18/dns.d.ts +3 -3
  13. node v14.18/domain.d.ts +4 -4
  14. node v14.18/events.d.ts +3 -3
  15. node v14.18/fs/promises.d.ts +0 -0
  16. node v14.18/fs.d.ts +4 -4
  17. node v14.18/globals.d.ts +0 -0
  18. node v14.18/globals.global.d.ts +0 -0
  19. node v14.18/http.d.ts +3 -3
  20. node v14.18/http2.d.ts +4 -4
  21. node v14.18/https.d.ts +3 -3
  22. node v14.18/index.d.ts +0 -0
  23. node v14.18/inspector.d.ts +4 -4
  24. node v14.18/module.d.ts +3 -3
  25. node v14.18/net.d.ts +3 -3
  26. node v14.18/os.d.ts +3 -3
  27. node v14.18/package.json +3 -3
  28. node v14.18/path.d.ts +3 -3
  29. node v14.18/perf_hooks.d.ts +3 -3
  30. node v14.18/process.d.ts +3 -3
  31. node v14.18/punycode.d.ts +3 -3
  32. node v14.18/querystring.d.ts +3 -3
  33. node v14.18/readline.d.ts +4 -4
  34. node v14.18/repl.d.ts +3 -3
  35. node v14.18/stream.d.ts +4 -4
  36. node v14.18/string_decoder.d.ts +3 -3
  37. node v14.18/timers.d.ts +3 -3
  38. node v14.18/tls.d.ts +3 -3
  39. node v14.18/trace_events.d.ts +3 -3
  40. node v14.18/ts4.8/assert.d.ts +3 -3
  41. node v14.18/ts4.8/async_hooks.d.ts +3 -3
  42. node v14.18/ts4.8/buffer.d.ts +3 -3
  43. node v14.18/ts4.8/child_process.d.ts +3 -3
  44. node v14.18/ts4.8/cluster.d.ts +3 -3
  45. node v14.18/ts4.8/console.d.ts +0 -0
  46. node v14.18/ts4.8/constants.d.ts +3 -3
  47. node v14.18/ts4.8/crypto.d.ts +3 -3
  48. node v14.18/ts4.8/dgram.d.ts +3 -3
  49. node v14.18/ts4.8/dns.d.ts +3 -3
  50. node v14.18/ts4.8/domain.d.ts +4 -4
  51. node v14.18/ts4.8/events.d.ts +3 -3
  52. node v14.18/ts4.8/fs/promises.d.ts +3 -3
  53. node v14.18/ts4.8/fs.d.ts +4 -4
  54. node v14.18/ts4.8/globals.d.ts +0 -0
  55. node v14.18/ts4.8/globals.global.d.ts +0 -0
  56. node v14.18/ts4.8/http.d.ts +3 -3
  57. node v14.18/ts4.8/http2.d.ts +4 -4
  58. node v14.18/ts4.8/https.d.ts +3 -3
  59. node v14.18/ts4.8/index.d.ts +0 -0
  60. node v14.18/ts4.8/inspector.d.ts +4 -4
  61. node v14.18/ts4.8/module.d.ts +3 -3
  62. node v14.18/ts4.8/net.d.ts +3 -3
  63. node v14.18/ts4.8/os.d.ts +3 -3
  64. node v14.18/ts4.8/path.d.ts +3 -3
  65. node v14.18/ts4.8/perf_hooks.d.ts +3 -3
  66. node v14.18/ts4.8/process.d.ts +3 -3
  67. node v14.18/ts4.8/punycode.d.ts +3 -3
  68. node v14.18/ts4.8/querystring.d.ts +3 -3
  69. node v14.18/ts4.8/readline.d.ts +4 -4
  70. node v14.18/ts4.8/repl.d.ts +3 -3
  71. node v14.18/ts4.8/stream.d.ts +4 -4
  72. node v14.18/ts4.8/string_decoder.d.ts +3 -3
  73. node v14.18/ts4.8/timers.d.ts +3 -3
  74. node v14.18/ts4.8/tls.d.ts +3 -3
  75. node v14.18/ts4.8/trace_events.d.ts +3 -3
  76. node v14.18/ts4.8/tty.d.ts +3 -3
  77. node v14.18/ts4.8/url.d.ts +3 -3
  78. node v14.18/ts4.8/util.d.ts +3 -3
  79. node v14.18/ts4.8/v8.d.ts +3 -3
  80. node v14.18/ts4.8/vm.d.ts +3 -3
  81. node v14.18/ts4.8/wasi.d.ts +3 -3
  82. node v14.18/ts4.8/worker_threads.d.ts +3 -3
  83. node v14.18/ts4.8/zlib.d.ts +3 -3
  84. node v14.18/tty.d.ts +3 -3
  85. node v14.18/url.d.ts +3 -3
  86. node v14.18/util.d.ts +3 -3
  87. node v14.18/v8.d.ts +3 -3
  88. node v14.18/vm.d.ts +3 -3
  89. node v14.18/wasi.d.ts +3 -3
  90. node v14.18/worker_threads.d.ts +3 -3
  91. node v14.18/zlib.d.ts +3 -3
node v14.18/LICENSE CHANGED
File without changes
node v14.18/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://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: Fri, 08 Sep 2023 20:33:19 GMT
11
+ * Last updated: Sat, 16 Sep 2023 06:34:52 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v14.18/assert.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'assert' {
1
+ declare module 'node:assert' {
2
2
  /** An alias of `assert.ok()`. */
3
3
  function assert(value: any, message?: string | Error): asserts value;
4
4
  namespace assert {
@@ -122,7 +122,7 @@ declare module 'assert' {
122
122
 
123
123
  export = assert;
124
124
  }
125
- declare module 'node:assert' {
126
- import assert = require('assert');
125
+ declare module 'assert' {
126
+ import assert = require('node:assert');
127
127
  export = assert;
128
128
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Async Hooks module: https://nodejs.org/api/async_hooks.html
3
3
  */
4
- declare module 'async_hooks' {
4
+ declare module 'node:async_hooks' {
5
5
  /**
6
6
  * Returns the asyncId of the current execution context.
7
7
  */
@@ -225,6 +225,6 @@ declare module 'async_hooks' {
225
225
  enterWith(store: T): void;
226
226
  }
227
227
  }
228
- declare module 'node:async_hooks' {
229
- export * from 'async_hooks';
228
+ declare module 'async_hooks' {
229
+ export * from 'node:async_hooks';
230
230
  }
node v14.18/buffer.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'buffer' {
1
+ declare module 'node:buffer' {
2
2
  import { BinaryLike } from 'node:crypto';
3
3
  export const INSPECT_MAX_BYTES: number;
4
4
  export const kMaxLength: number;
@@ -84,6 +84,6 @@ declare module 'buffer' {
84
84
 
85
85
  export { BuffType as Buffer };
86
86
  }
87
- declare module 'node:buffer' {
88
- export * from 'buffer';
87
+ declare module 'buffer' {
88
+ export * from 'node:buffer';
89
89
  }
@@ -1,4 +1,4 @@
1
- declare module 'child_process' {
1
+ declare module 'node:child_process' {
2
2
  import { BaseEncodingOptions } from 'fs';
3
3
  import * as events from 'events';
4
4
  import * as net from 'net';
@@ -548,6 +548,6 @@ declare module 'child_process' {
548
548
  function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
549
549
  function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
550
550
  }
551
- declare module 'node:child_process' {
552
- export * from 'child_process';
551
+ declare module 'child_process' {
552
+ export * from 'node:child_process';
553
553
  }
@@ -1,4 +1,4 @@
1
- declare module 'cluster' {
1
+ declare module 'node:cluster' {
2
2
  import * as child from 'child_process';
3
3
  import EventEmitter = require('events');
4
4
  import * as net from 'net';
@@ -264,6 +264,6 @@ declare module 'cluster' {
264
264
 
265
265
  function eventNames(): string[];
266
266
  }
267
- declare module 'node:cluster' {
268
- export * from 'cluster';
267
+ declare module 'cluster' {
268
+ export * from 'node:cluster';
269
269
  }
node v14.18/console.d.ts CHANGED
File without changes
@@ -1,5 +1,5 @@
1
1
  /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
2
- declare module 'constants' {
2
+ declare module 'node:constants' {
3
3
  import { constants as osConstants, SignalConstants } from 'os';
4
4
  import { constants as cryptoConstants } from 'crypto';
5
5
  import { constants as fsConstants } from 'fs';
@@ -12,7 +12,7 @@ declare module 'constants' {
12
12
  export = exp;
13
13
  }
14
14
 
15
- declare module 'node:constants' {
16
- import constants = require('constants');
15
+ declare module 'constants' {
16
+ import constants = require('node:constants');
17
17
  export = constants;
18
18
  }
node v14.18/crypto.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'crypto' {
1
+ declare module 'node:crypto' {
2
2
  import * as stream from 'stream';
3
3
 
4
4
  interface Certificate {
@@ -1278,6 +1278,6 @@ declare module 'crypto' {
1278
1278
  */
1279
1279
  function setEngine(engine: string, flags?: number): void;
1280
1280
  }
1281
- declare module 'node:crypto' {
1282
- export * from 'crypto';
1281
+ declare module 'crypto' {
1282
+ export * from 'node:crypto';
1283
1283
  }
node v14.18/dgram.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'dgram' {
1
+ declare module 'node:dgram' {
2
2
  import { AddressInfo } from 'net';
3
3
  import * as dns from 'dns';
4
4
  import EventEmitter = require('events');
@@ -139,6 +139,6 @@ declare module 'dgram' {
139
139
  prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
140
140
  }
141
141
  }
142
- declare module 'node:dgram' {
143
- export * from 'dgram';
142
+ declare module 'dgram' {
143
+ export * from 'node:dgram';
144
144
  }
node v14.18/dns.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'dns' {
1
+ declare module 'node:dns' {
2
2
  // Supported getaddrinfo flags.
3
3
  const ADDRCONFIG: number;
4
4
  const V4MAPPED: number;
@@ -382,6 +382,6 @@ declare module 'dns' {
382
382
  }
383
383
  }
384
384
  }
385
- declare module 'node:dns' {
386
- export * from 'dns';
385
+ declare module 'dns' {
386
+ export * from 'node:dns';
387
387
  }
node v14.18/domain.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module 'domain' {
2
- import EventEmitter = require('events');
1
+ declare module 'node:domain' {
2
+ import EventEmitter = require('node:events');
3
3
 
4
4
  global {
5
5
  namespace NodeJS {
@@ -22,6 +22,6 @@ declare module 'domain' {
22
22
 
23
23
  function create(): Domain;
24
24
  }
25
- declare module 'node:domain' {
26
- export * from 'domain';
25
+ declare module 'domain' {
26
+ export * from 'node:domain';
27
27
  }
node v14.18/events.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'events' {
1
+ declare module 'node:events' {
2
2
  interface EventEmitterOptions {
3
3
  /**
4
4
  * Enables automatic capturing of promise rejection.
@@ -76,7 +76,7 @@ declare module 'events' {
76
76
 
77
77
  export = EventEmitter;
78
78
  }
79
- declare module 'node:events' {
80
- import events = require('events');
79
+ declare module 'events' {
80
+ import events = require('node:events');
81
81
  export = events;
82
82
  }
File without changes
node v14.18/fs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'fs' {
1
+ declare module 'node:fs' {
2
2
  import * as stream from 'stream';
3
3
  import EventEmitter = require('events');
4
4
  import { URL } from 'url';
@@ -2079,6 +2079,7 @@ declare module 'fs' {
2079
2079
  autoClose?: boolean | undefined;
2080
2080
  emitClose?: boolean | undefined;
2081
2081
  start?: number | undefined;
2082
+ highWaterMark?: number | undefined;
2082
2083
  }
2083
2084
  interface FSImplementation {
2084
2085
  open: (...args: any[]) => any;
@@ -2094,7 +2095,6 @@ declare module 'fs' {
2094
2095
  interface ReadStreamOptions extends StreamOptions {
2095
2096
  fs?: CreateReadStreamFSImplementation | null | undefined;
2096
2097
  end?: number | undefined;
2097
- highWaterMark?: number | undefined;
2098
2098
  }
2099
2099
  interface WriteStreamOptions extends StreamOptions {
2100
2100
  fs?: CreateWriteStreamFSImplementation | null | undefined;
@@ -2282,6 +2282,6 @@ declare module 'fs' {
2282
2282
  bigint?: boolean | undefined;
2283
2283
  }
2284
2284
  }
2285
- declare module 'node:fs' {
2286
- export * from 'fs';
2285
+ declare module 'fs' {
2286
+ export * from 'node:fs';
2287
2287
  }
node v14.18/globals.d.ts CHANGED
File without changes
File without changes
node v14.18/http.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'http' {
1
+ declare module 'node:http' {
2
2
  import * as stream from 'stream';
3
3
  import { URL } from 'url';
4
4
  import { EventEmitter } from 'events';
@@ -576,6 +576,6 @@ declare module 'http' {
576
576
  */
577
577
  const maxHeaderSize: number;
578
578
  }
579
- declare module 'node:http' {
580
- export * from 'http';
579
+ declare module 'http' {
580
+ export * from 'node:http';
581
581
  }
node v14.18/http2.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module 'http2' {
2
- import EventEmitter = require('events');
1
+ declare module 'node:http2' {
2
+ import EventEmitter = require('node:events');
3
3
  import * as fs from 'fs';
4
4
  import * as net from 'net';
5
5
  import * as stream from 'stream';
@@ -956,6 +956,6 @@ declare module 'http2' {
956
956
  listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
957
957
  ): ClientHttp2Session;
958
958
  }
959
- declare module 'node:http2' {
960
- export * from 'http2';
959
+ declare module 'http2' {
960
+ export * from 'node:http2';
961
961
  }
node v14.18/https.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'https' {
1
+ declare module 'node:https' {
2
2
  import { Duplex } from 'stream';
3
3
  import * as tls from 'tls';
4
4
  import * as http from 'http';
@@ -267,6 +267,6 @@ declare module 'https' {
267
267
  ): http.ClientRequest;
268
268
  let globalAgent: Agent;
269
269
  }
270
- declare module 'node:https' {
271
- export * from 'https';
270
+ declare module 'https' {
271
+ export * from 'node:https';
272
272
  }
node v14.18/index.d.ts CHANGED
File without changes
@@ -9,8 +9,8 @@
9
9
  /**
10
10
  * The inspector module provides an API for interacting with the V8 inspector.
11
11
  */
12
- declare module 'inspector' {
13
- import EventEmitter = require('events');
12
+ declare module 'node:inspector' {
13
+ import EventEmitter = require('node:events');
14
14
 
15
15
  interface InspectorNotification<T> {
16
16
  method: string;
@@ -3044,7 +3044,7 @@ declare module 'inspector' {
3044
3044
  */
3045
3045
  function waitForDebugger(): void;
3046
3046
  }
3047
- declare module 'node:inspector' {
3048
- import EventEmitter = require('inspector');
3047
+ declare module 'inspector' {
3048
+ import EventEmitter = require('node:inspector');
3049
3049
  export = EventEmitter;
3050
3050
  }
node v14.18/module.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'module' {
1
+ declare module 'node:module' {
2
2
  import { URL } from 'url';
3
3
  namespace Module {
4
4
  /**
@@ -50,7 +50,7 @@ declare module 'module' {
50
50
  }
51
51
  export = Module;
52
52
  }
53
- declare module 'node:module' {
54
- import module = require('module');
53
+ declare module 'module' {
54
+ import module = require('node:module');
55
55
  export = module;
56
56
  }
node v14.18/net.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'net' {
1
+ declare module 'node:net' {
2
2
  import * as stream from 'stream';
3
3
  import EventEmitter = require('events');
4
4
  import * as dns from 'dns';
@@ -304,6 +304,6 @@ declare module 'net' {
304
304
  function isIPv4(input: string): boolean;
305
305
  function isIPv6(input: string): boolean;
306
306
  }
307
- declare module 'node:net' {
308
- export * from 'net';
307
+ declare module 'net' {
308
+ export * from 'node:net';
309
309
  }
node v14.18/os.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'os' {
1
+ declare module 'node:os' {
2
2
  interface CpuInfo {
3
3
  model: string;
4
4
  speed: number;
@@ -238,6 +238,6 @@ declare module 'os' {
238
238
  */
239
239
  function setPriority(pid: number, priority: number): void;
240
240
  }
241
- declare module 'node:os' {
242
- export * from 'os';
241
+ declare module 'os' {
242
+ export * from 'node:os';
243
243
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.59",
3
+ "version": "14.18.61",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "dfe0aee18ff86f468d9584c10b47c6cef0588ee25cb755b6806feb7e0a027cb9",
231
- "typeScriptVersion": "4.3"
230
+ "typesPublisherContentHash": "1c17ac3ff932562c022063d9d7d835ff2b72d63fbd49be6911f1a0e79d99def8",
231
+ "typeScriptVersion": "4.5"
232
232
  }
node v14.18/path.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'path' {
1
+ declare module 'node:path' {
2
2
  namespace path {
3
3
  /**
4
4
  * A parsed path object generated by path.parse() or consumed by path.format().
@@ -162,7 +162,7 @@ declare module 'path' {
162
162
  const path: path.PlatformPath;
163
163
  export = path;
164
164
  }
165
- declare module 'node:path' {
166
- import path = require('path');
165
+ declare module 'path' {
166
+ import path = require('node:path');
167
167
  export = path;
168
168
  }
@@ -1,4 +1,4 @@
1
- declare module 'perf_hooks' {
1
+ declare module 'node:perf_hooks' {
2
2
  import { AsyncResource } from 'async_hooks';
3
3
 
4
4
  type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
@@ -269,6 +269,6 @@ declare module 'perf_hooks' {
269
269
 
270
270
  function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
271
271
  }
272
- declare module 'node:perf_hooks' {
273
- export * from 'perf_hooks';
272
+ declare module 'perf_hooks' {
273
+ export * from 'node:perf_hooks';
274
274
  }
@@ -1,4 +1,4 @@
1
- declare module 'process' {
1
+ declare module 'node:process' {
2
2
  import * as tty from 'tty';
3
3
 
4
4
  global {
@@ -407,7 +407,7 @@ declare module 'process' {
407
407
 
408
408
  export = process;
409
409
  }
410
- declare module 'node:process' {
411
- import process = require('process');
410
+ declare module 'process' {
411
+ import process = require('node:process');
412
412
  export = process;
413
413
  }
@@ -5,7 +5,7 @@
5
5
  * Users currently depending on the punycode module should switch to using
6
6
  * the userland-provided Punycode.js module instead.
7
7
  */
8
- declare module 'punycode' {
8
+ declare module 'node:punycode' {
9
9
  /**
10
10
  * @deprecated since v7.0.0
11
11
  * The version of the punycode module bundled in Node.js is being deprecated.
@@ -73,6 +73,6 @@ declare module 'punycode' {
73
73
  */
74
74
  const version: string;
75
75
  }
76
- declare module 'node:punycode' {
77
- export * from 'punycode';
76
+ declare module 'punycode' {
77
+ export * from 'node:punycode';
78
78
  }
@@ -1,4 +1,4 @@
1
- declare module 'querystring' {
1
+ declare module 'node:querystring' {
2
2
  interface StringifyOptions {
3
3
  encodeURIComponent?: ((str: string) => string) | undefined;
4
4
  }
@@ -26,6 +26,6 @@ declare module 'querystring' {
26
26
  function escape(str: string): string;
27
27
  function unescape(str: string): string;
28
28
  }
29
- declare module 'node:querystring' {
30
- export * from 'querystring';
29
+ declare module 'querystring' {
30
+ export * from 'node:querystring';
31
31
  }
@@ -1,5 +1,5 @@
1
- declare module 'readline' {
2
- import EventEmitter = require('events');
1
+ declare module 'node:readline' {
2
+ import EventEmitter = require('node:events');
3
3
 
4
4
  interface Key {
5
5
  sequence?: string | undefined;
@@ -169,6 +169,6 @@ declare module 'readline' {
169
169
  */
170
170
  function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
171
171
  }
172
- declare module 'node:readline' {
173
- export * from 'readline';
172
+ declare module 'readline' {
173
+ export * from 'node:readline';
174
174
  }
node v14.18/repl.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'repl' {
1
+ declare module 'node:repl' {
2
2
  import { Interface, Completer, AsyncCompleter } from 'readline';
3
3
  import { Context } from 'vm';
4
4
  import { InspectOptions } from 'util';
@@ -393,6 +393,6 @@ declare module 'repl' {
393
393
  constructor(err: Error);
394
394
  }
395
395
  }
396
- declare module 'node:repl' {
397
- export * from 'repl';
396
+ declare module 'repl' {
397
+ export * from 'node:repl';
398
398
  }
node v14.18/stream.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module 'stream' {
2
- import EventEmitter = require('events');
1
+ declare module 'node:stream' {
2
+ import EventEmitter = require('node:events');
3
3
 
4
4
  class internal extends EventEmitter {
5
5
  pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
@@ -452,7 +452,7 @@ declare module 'stream' {
452
452
 
453
453
  export = internal;
454
454
  }
455
- declare module 'node:stream' {
456
- import stream = require('stream');
455
+ declare module 'stream' {
456
+ import stream = require('node:stream');
457
457
  export = stream;
458
458
  }
@@ -1,10 +1,10 @@
1
- declare module 'string_decoder' {
1
+ declare module 'node:string_decoder' {
2
2
  class StringDecoder {
3
3
  constructor(encoding?: BufferEncoding);
4
4
  write(buffer: Buffer): string;
5
5
  end(buffer?: Buffer): string;
6
6
  }
7
7
  }
8
- declare module 'node:string_decoder' {
9
- export * from 'string_decoder';
8
+ declare module 'string_decoder' {
9
+ export * from 'node:string_decoder';
10
10
  }
node v14.18/timers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'timers' {
1
+ declare module 'node:timers' {
2
2
  function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
3
3
  namespace setTimeout {
4
4
  function __promisify__(ms: number): Promise<void>;
@@ -14,6 +14,6 @@ declare module 'timers' {
14
14
  }
15
15
  function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
16
16
  }
17
- declare module 'node:timers' {
18
- export * from 'timers';
17
+ declare module 'timers' {
18
+ export * from 'node:timers';
19
19
  }
node v14.18/tls.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module 'tls' {
1
+ declare module 'node:tls' {
2
2
  import * as net from 'net';
3
3
  import * as stream from 'stream';
4
4
 
@@ -779,6 +779,6 @@ declare module 'tls' {
779
779
  */
780
780
  const rootCertificates: ReadonlyArray<string>;
781
781
  }
782
- declare module 'node:tls' {
783
- export * from 'tls';
782
+ declare module 'tls' {
783
+ export * from 'node:tls';
784
784
  }
@@ -1,4 +1,4 @@
1
- declare module 'trace_events' {
1
+ declare module 'node:trace_events' {
2
2
  /**
3
3
  * The `Tracing` object is used to enable or disable tracing for sets of
4
4
  * categories. Instances are created using the
@@ -59,6 +59,6 @@ declare module 'trace_events' {
59
59
  */
60
60
  function getEnabledCategories(): string | undefined;
61
61
  }
62
- declare module 'node:trace_events' {
63
- export * from 'trace_events';
62
+ declare module 'trace_events' {
63
+ export * from 'node:trace_events';
64
64
  }
@@ -1,4 +1,4 @@
1
- declare module 'assert' {
1
+ declare module 'node:assert' {
2
2
  /** An alias of `assert.ok()`. */
3
3
  function assert(value: any, message?: string | Error): asserts value;
4
4
  namespace assert {
@@ -122,7 +122,7 @@ declare module 'assert' {
122
122
 
123
123
  export = assert;
124
124
  }
125
- declare module 'node:assert' {
126
- import assert = require('assert');
125
+ declare module 'assert' {
126
+ import assert = require('node:assert');
127
127
  export = assert;
128
128
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Async Hooks module: https://nodejs.org/api/async_hooks.html
3
3
  */
4
- declare module 'async_hooks' {
4
+ declare module 'node:async_hooks' {
5
5
  /**
6
6
  * Returns the asyncId of the current execution context.
7
7
  */
@@ -225,6 +225,6 @@ declare module 'async_hooks' {
225
225
  enterWith(store: T): void;
226
226
  }
227
227
  }
228
- declare module 'node:async_hooks' {
229
- export * from 'async_hooks';
228
+ declare module 'async_hooks' {
229
+ export * from 'node:async_hooks';
230
230
  }
@@ -1,4 +1,4 @@
1
- declare module 'buffer' {
1
+ declare module 'node:buffer' {
2
2
  import { BinaryLike } from 'node:crypto';
3
3
  export const INSPECT_MAX_BYTES: number;
4
4
  export const kMaxLength: number;
@@ -84,6 +84,6 @@ declare module 'buffer' {
84
84
 
85
85
  export { BuffType as Buffer };
86
86
  }
87
- declare module 'node:buffer' {
88
- export * from 'buffer';
87
+ declare module 'buffer' {
88
+ export * from 'node:buffer';
89
89
  }
@@ -1,4 +1,4 @@
1
- declare module 'child_process' {
1
+ declare module 'node:child_process' {
2
2
  import { BaseEncodingOptions } from 'fs';
3
3
  import * as events from 'events';
4
4
  import * as net from 'net';
@@ -548,6 +548,6 @@ declare module 'child_process' {
548
548
  function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
549
549
  function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
550
550
  }
551
- declare module 'node:child_process' {
552
- export * from 'child_process';
551
+ declare module 'child_process' {
552
+ export * from 'node:child_process';
553
553
  }
@@ -1,4 +1,4 @@
1
- declare module 'cluster' {
1
+ declare module 'node:cluster' {
2
2
  import * as child from 'child_process';
3
3
  import EventEmitter = require('events');
4
4
  import * as net from 'net';
@@ -264,6 +264,6 @@ declare module 'cluster' {
264
264
 
265
265
  function eventNames(): string[];
266
266
  }
267
- declare module 'node:cluster' {
268
- export * from 'cluster';
267
+ declare module 'cluster' {
268
+ export * from 'node:cluster';
269
269
  }