@types/node 14.18.9 → 15.0.3

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 (58) hide show
  1. {node v14.18 → node}/LICENSE +0 -0
  2. node v14.18/README.md → node/README.md +4 -4
  3. node/assert/strict.d.ts +4 -0
  4. node v14.18/assert.d.ts → node/assert.d.ts +3 -7
  5. node v14.18/async_hooks.d.ts → node/async_hooks.d.ts +2 -5
  6. node/base.d.ts +19 -0
  7. node/buffer.d.ts +22 -0
  8. node v14.18/child_process.d.ts → node/child_process.d.ts +63 -67
  9. node v14.18/cluster.d.ts → node/cluster.d.ts +10 -13
  10. node v14.18/console.d.ts → node/console.d.ts +13 -22
  11. node v14.18/constants.d.ts → node/constants.d.ts +0 -5
  12. node v14.18/crypto.d.ts → node/crypto.d.ts +134 -53
  13. node v14.18/dgram.d.ts → node/dgram.d.ts +17 -20
  14. node/dns/promises.d.ts +97 -0
  15. node/dns.d.ts +322 -0
  16. node v14.18/domain.d.ts → node/domain.d.ts +0 -3
  17. node v14.18/events.d.ts → node/events.d.ts +8 -8
  18. node v14.18/fs/promises.d.ts → node/fs/promises.d.ts +18 -29
  19. node v14.18/fs.d.ts → node/fs.d.ts +77 -93
  20. node v14.18/globals.d.ts → node/globals.d.ts +60 -67
  21. {node v14.18 → node}/globals.global.d.ts +0 -0
  22. node v14.18/http.d.ts → node/http.d.ts +108 -176
  23. node v14.18/http2.d.ts → node/http2.d.ts +74 -71
  24. node/https.d.ts +36 -0
  25. node v14.18/index.d.ts → node/index.d.ts +15 -55
  26. node v14.18/inspector.d.ts → node/inspector.d.ts +151 -161
  27. node v14.18/module.d.ts → node/module.d.ts +0 -4
  28. node v14.18/net.d.ts → node/net.d.ts +68 -38
  29. node v14.18/os.d.ts → node/os.d.ts +0 -3
  30. node v14.18/package.json → node/package.json +25 -19
  31. node v14.18/path.d.ts → node/path.d.ts +5 -9
  32. node v14.18/perf_hooks.d.ts → node/perf_hooks.d.ts +5 -8
  33. node v14.18/process.d.ts → node/process.d.ts +53 -17
  34. node v14.18/punycode.d.ts → node/punycode.d.ts +0 -3
  35. node v14.18/querystring.d.ts → node/querystring.d.ts +3 -6
  36. node v14.18/readline.d.ts → node/readline.d.ts +14 -18
  37. node v14.18/repl.d.ts → node/repl.d.ts +14 -17
  38. node/stream/promises.d.ts +67 -0
  39. node v14.18/stream.d.ts → node/stream.d.ts +164 -60
  40. node v14.18/string_decoder.d.ts → node/string_decoder.d.ts +0 -3
  41. node/timers/promises.d.ts +13 -0
  42. node v14.18/timers.d.ts → node/timers.d.ts +16 -5
  43. node v14.18/tls.d.ts → node/tls.d.ts +51 -56
  44. node v14.18/trace_events.d.ts → node/trace_events.d.ts +0 -3
  45. node/ts3.6/assert.d.ts +98 -0
  46. node/ts3.6/base.d.ts +66 -0
  47. node/ts3.6/index.d.ts +7 -0
  48. node v14.18/tty.d.ts → node/tty.d.ts +0 -3
  49. node v14.18/url.d.ts → node/url.d.ts +16 -19
  50. node v14.18/util.d.ts → node/util.d.ts +3 -12
  51. node v14.18/v8.d.ts → node/v8.d.ts +0 -3
  52. node v14.18/vm.d.ts → node/vm.d.ts +24 -27
  53. node v14.18/wasi.d.ts → node/wasi.d.ts +7 -10
  54. node v14.18/worker_threads.d.ts → node/worker_threads.d.ts +18 -18
  55. node v14.18/zlib.d.ts → node/zlib.d.ts +16 -19
  56. node v14.18/buffer.d.ts +0 -89
  57. node v14.18/dns.d.ts +0 -387
  58. node v14.18/https.d.ts +0 -142
File without changes
@@ -2,15 +2,15 @@
2
2
  > `npm install --save @types/node`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Node.js (https://nodejs.org/).
5
+ This package contains type definitions for Node.js (http://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 19 Jan 2022 07:31:23 GMT
11
+ * Last updated: Wed, 12 May 2021 19:31:25 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
 
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), [Seth Westphal](https://github.com/westy92), [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), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [Bond](https://github.com/bondz), and [Linus Unnebäck](https://github.com/LinusU).
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).
@@ -0,0 +1,4 @@
1
+ declare module 'assert/strict' {
2
+ import { strict } from 'assert';
3
+ export = strict;
4
+ }
@@ -11,16 +11,16 @@ declare module 'assert' {
11
11
 
12
12
  constructor(options?: {
13
13
  /** If provided, the error message is set to this value. */
14
- message?: string | undefined;
14
+ message?: string;
15
15
  /** The `actual` property on the error instance. */
16
16
  actual?: any;
17
17
  /** The `expected` property on the error instance. */
18
18
  expected?: any;
19
19
  /** The `operator` property on the error instance. */
20
- operator?: string | undefined;
20
+ operator?: string;
21
21
  /** If provided, the generated stack trace omits frames before this function. */
22
22
  // tslint:disable-next-line:ban-types
23
- stackStartFn?: Function | undefined;
23
+ stackStartFn?: Function;
24
24
  });
25
25
  }
26
26
 
@@ -122,7 +122,3 @@ declare module 'assert' {
122
122
 
123
123
  export = assert;
124
124
  }
125
- declare module 'node:assert' {
126
- import assert = require('assert');
127
- export = assert;
128
- }
@@ -87,7 +87,7 @@ declare module 'async_hooks' {
87
87
  * The ID of the execution context that created this async event.
88
88
  * @default executionAsyncId()
89
89
  */
90
- triggerAsyncId?: number | undefined;
90
+ triggerAsyncId?: number;
91
91
 
92
92
  /**
93
93
  * Disables automatic `emitDestroy` when the object is garbage collected.
@@ -96,7 +96,7 @@ declare module 'async_hooks' {
96
96
  * sensitive API's `emitDestroy` is called with it.
97
97
  * @default false
98
98
  */
99
- requireManualDestroy?: boolean | undefined;
99
+ requireManualDestroy?: boolean;
100
100
  }
101
101
 
102
102
  /**
@@ -224,6 +224,3 @@ declare module 'async_hooks' {
224
224
  enterWith(store: T): void;
225
225
  }
226
226
  }
227
- declare module 'node:async_hooks' {
228
- export * from 'async_hooks';
229
- }
node/base.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.7.
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.7/base.d.ts - Definitions specific to TypeScript 3.7
7
+ // - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 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
+ /// <reference path="ts3.6/base.d.ts" />
17
+
18
+ // TypeScript 3.7-specific augmentations:
19
+ /// <reference path="assert.d.ts" />
node/buffer.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ declare module 'buffer' {
2
+ export const INSPECT_MAX_BYTES: number;
3
+ export const kMaxLength: number;
4
+ export const kStringMaxLength: number;
5
+ export const constants: {
6
+ MAX_LENGTH: number;
7
+ MAX_STRING_LENGTH: number;
8
+ };
9
+ const BuffType: typeof Buffer;
10
+
11
+ export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
12
+
13
+ export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
14
+
15
+ export const SlowBuffer: {
16
+ /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
17
+ new(size: number): Buffer;
18
+ prototype: Buffer;
19
+ };
20
+
21
+ export { BuffType as Buffer };
22
+ }
@@ -11,7 +11,7 @@ declare module 'child_process' {
11
11
  stdin: Writable | null;
12
12
  stdout: Readable | null;
13
13
  stderr: Readable | null;
14
- readonly channel?: Pipe | null | undefined;
14
+ readonly channel?: Pipe | null;
15
15
  readonly stdio: [
16
16
  Writable | null, // stdin
17
17
  Readable | null, // stdout
@@ -119,7 +119,7 @@ declare module 'child_process' {
119
119
  }
120
120
 
121
121
  interface MessageOptions {
122
- keepOpen?: boolean | undefined;
122
+ keepOpen?: boolean;
123
123
  }
124
124
 
125
125
  type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
@@ -131,40 +131,40 @@ declare module 'child_process' {
131
131
  * Specify the kind of serialization used for sending messages between processes.
132
132
  * @default 'json'
133
133
  */
134
- serialization?: SerializationType | undefined;
134
+ serialization?: SerializationType;
135
135
  }
136
136
 
137
137
  interface ProcessEnvOptions {
138
- uid?: number | undefined;
139
- gid?: number | undefined;
140
- cwd?: string | undefined;
141
- env?: NodeJS.ProcessEnv | undefined;
138
+ uid?: number;
139
+ gid?: number;
140
+ cwd?: string;
141
+ env?: NodeJS.ProcessEnv;
142
142
  }
143
143
 
144
144
  interface CommonOptions extends ProcessEnvOptions {
145
145
  /**
146
146
  * @default true
147
147
  */
148
- windowsHide?: boolean | undefined;
148
+ windowsHide?: boolean;
149
149
  /**
150
150
  * @default 0
151
151
  */
152
- timeout?: number | undefined;
152
+ timeout?: number;
153
153
  }
154
154
 
155
155
  interface CommonSpawnOptions extends CommonOptions, MessagingOptions {
156
- argv0?: string | undefined;
157
- stdio?: StdioOptions | undefined;
158
- shell?: boolean | string | undefined;
159
- windowsVerbatimArguments?: boolean | undefined;
156
+ argv0?: string;
157
+ stdio?: StdioOptions;
158
+ shell?: boolean | string;
159
+ windowsVerbatimArguments?: boolean;
160
160
  }
161
161
 
162
162
  interface SpawnOptions extends CommonSpawnOptions {
163
- detached?: boolean | undefined;
163
+ detached?: boolean;
164
164
  }
165
165
 
166
166
  interface SpawnOptionsWithoutStdio extends SpawnOptions {
167
- stdio?: 'pipe' | Array<null | undefined | 'pipe'> | undefined;
167
+ stdio?: 'pipe' | Array<null | undefined | 'pipe'>;
168
168
  }
169
169
 
170
170
  type StdioNull = 'inherit' | 'ignore' | Stream;
@@ -263,9 +263,9 @@ declare module 'child_process' {
263
263
  function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
264
264
 
265
265
  interface ExecOptions extends CommonOptions {
266
- shell?: string | undefined;
267
- maxBuffer?: number | undefined;
268
- killSignal?: NodeJS.Signals | number | undefined;
266
+ shell?: string;
267
+ maxBuffer?: number;
268
+ killSignal?: NodeJS.Signals | number;
269
269
  }
270
270
 
271
271
  interface ExecOptionsWithStringEncoding extends ExecOptions {
@@ -277,10 +277,10 @@ declare module 'child_process' {
277
277
  }
278
278
 
279
279
  interface ExecException extends Error {
280
- cmd?: string | undefined;
281
- killed?: boolean | undefined;
282
- code?: number | undefined;
283
- signal?: NodeJS.Signals | undefined;
280
+ cmd?: string;
281
+ killed?: boolean;
282
+ code?: number;
283
+ signal?: NodeJS.Signals;
284
284
  }
285
285
 
286
286
  // no `options` definitely means stdout/stderr are `string`.
@@ -324,10 +324,10 @@ declare module 'child_process' {
324
324
  }
325
325
 
326
326
  interface ExecFileOptions extends CommonOptions {
327
- maxBuffer?: number | undefined;
328
- killSignal?: NodeJS.Signals | number | undefined;
329
- windowsVerbatimArguments?: boolean | undefined;
330
- shell?: boolean | string | undefined;
327
+ maxBuffer?: number;
328
+ killSignal?: NodeJS.Signals | number;
329
+ windowsVerbatimArguments?: boolean;
330
+ shell?: boolean | string;
331
331
  }
332
332
  interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
333
333
  encoding: BufferEncoding;
@@ -428,71 +428,71 @@ declare module 'child_process' {
428
428
  }
429
429
 
430
430
  interface ForkOptions extends ProcessEnvOptions, MessagingOptions {
431
- execPath?: string | undefined;
432
- execArgv?: string[] | undefined;
433
- silent?: boolean | undefined;
434
- stdio?: StdioOptions | undefined;
435
- detached?: boolean | undefined;
436
- windowsVerbatimArguments?: boolean | undefined;
431
+ execPath?: string;
432
+ execArgv?: string[];
433
+ silent?: boolean;
434
+ stdio?: StdioOptions;
435
+ detached?: boolean;
436
+ windowsVerbatimArguments?: boolean;
437
437
  }
438
438
  function fork(modulePath: string, options?: ForkOptions): ChildProcess;
439
439
  function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
440
440
 
441
441
  interface SpawnSyncOptions extends CommonSpawnOptions {
442
- input?: string | NodeJS.ArrayBufferView | undefined;
443
- killSignal?: NodeJS.Signals | number | undefined;
444
- maxBuffer?: number | undefined;
445
- encoding?: BufferEncoding | 'buffer' | null | undefined;
442
+ input?: string | NodeJS.ArrayBufferView;
443
+ killSignal?: NodeJS.Signals | number;
444
+ maxBuffer?: number;
445
+ encoding?: BufferEncoding | 'buffer' | null;
446
446
  }
447
447
  interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
448
448
  encoding: BufferEncoding;
449
449
  }
450
450
  interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
451
- encoding?: 'buffer' | null | undefined;
451
+ encoding?: 'buffer' | null;
452
452
  }
453
453
  interface SpawnSyncReturns<T> {
454
454
  pid: number;
455
- output: Array<T | null>;
455
+ output: string[];
456
456
  stdout: T;
457
457
  stderr: T;
458
458
  status: number | null;
459
459
  signal: NodeJS.Signals | null;
460
- error?: Error | undefined;
460
+ error?: Error;
461
461
  }
462
462
  function spawnSync(command: string): SpawnSyncReturns<Buffer>;
463
463
  function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
464
464
  function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
465
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
465
+ function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
466
466
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
467
467
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
468
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
468
+ function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
469
469
 
470
470
  interface ExecSyncOptions extends CommonOptions {
471
- input?: string | Uint8Array | undefined;
472
- stdio?: StdioOptions | undefined;
473
- shell?: string | undefined;
474
- killSignal?: NodeJS.Signals | number | undefined;
475
- maxBuffer?: number | undefined;
476
- encoding?: BufferEncoding | 'buffer' | null | undefined;
471
+ input?: string | Uint8Array;
472
+ stdio?: StdioOptions;
473
+ shell?: string;
474
+ killSignal?: NodeJS.Signals | number;
475
+ maxBuffer?: number;
476
+ encoding?: BufferEncoding | 'buffer' | null;
477
477
  }
478
478
  interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
479
479
  encoding: BufferEncoding;
480
480
  }
481
481
  interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
482
- encoding?: 'buffer' | null | undefined;
482
+ encoding?: 'buffer' | null;
483
483
  }
484
484
  function execSync(command: string): Buffer;
485
- function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
486
- function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
487
- function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
485
+ function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
486
+ function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
487
+ function execSync(command: string, options?: ExecSyncOptions): Buffer;
488
488
 
489
489
  interface ExecFileSyncOptions extends CommonOptions {
490
- input?: string | NodeJS.ArrayBufferView | undefined;
491
- stdio?: StdioOptions | undefined;
492
- killSignal?: NodeJS.Signals | number | undefined;
493
- maxBuffer?: number | undefined;
494
- encoding?: BufferEncoding | undefined;
495
- shell?: boolean | string | undefined;
490
+ input?: string | NodeJS.ArrayBufferView;
491
+ stdio?: StdioOptions;
492
+ killSignal?: NodeJS.Signals | number;
493
+ maxBuffer?: number;
494
+ encoding?: BufferEncoding;
495
+ shell?: boolean | string;
496
496
  }
497
497
  interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
498
498
  encoding: BufferEncoding;
@@ -501,14 +501,10 @@ declare module 'child_process' {
501
501
  encoding: BufferEncoding; // specify `null`.
502
502
  }
503
503
  function execFileSync(command: string): Buffer;
504
- function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
505
- function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
506
- function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
507
- function execFileSync(command: string, args: ReadonlyArray<string>): Buffer;
508
- function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
509
- function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
510
- function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
511
- }
512
- declare module 'node:child_process' {
513
- export * from 'child_process';
504
+ function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
505
+ function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
506
+ function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
507
+ function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
508
+ function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
509
+ function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
514
510
  }
@@ -5,14 +5,14 @@ declare module 'cluster' {
5
5
 
6
6
  // interfaces
7
7
  interface ClusterSettings {
8
- execArgv?: string[] | undefined; // default: process.execArgv
9
- exec?: string | undefined;
10
- args?: string[] | undefined;
11
- silent?: boolean | undefined;
12
- stdio?: any[] | undefined;
13
- uid?: number | undefined;
14
- gid?: number | undefined;
15
- inspectPort?: number | (() => number) | undefined;
8
+ execArgv?: string[]; // default: process.execArgv
9
+ exec?: string;
10
+ args?: string[];
11
+ silent?: boolean;
12
+ stdio?: any[];
13
+ uid?: number;
14
+ gid?: number;
15
+ inspectPort?: number | (() => number);
16
16
  }
17
17
 
18
18
  interface Address {
@@ -99,8 +99,8 @@ declare module 'cluster' {
99
99
  schedulingPolicy: number;
100
100
  settings: ClusterSettings;
101
101
  setupMaster(settings?: ClusterSettings): void;
102
- worker?: Worker | undefined;
103
- workers?: NodeJS.Dict<Worker> | undefined;
102
+ worker?: Worker;
103
+ workers?: NodeJS.Dict<Worker>;
104
104
 
105
105
  readonly SCHED_NONE: number;
106
106
  readonly SCHED_RR: number;
@@ -260,6 +260,3 @@ declare module 'cluster' {
260
260
 
261
261
  function eventNames(): string[];
262
262
  }
263
- declare module 'node:cluster' {
264
- export * from 'cluster';
265
- }
@@ -1,8 +1,4 @@
1
1
  declare module 'console' {
2
- import console = require('node:console');
3
- export = console;
4
- }
5
- declare module 'node:console' {
6
2
  import { InspectOptions } from 'util';
7
3
 
8
4
  global {
@@ -29,16 +25,16 @@ declare module 'node:console' {
29
25
  */
30
26
  countReset(label?: string): void;
31
27
  /**
32
- * The `console.debug()` function is an alias for {@link console.log}.
28
+ * The `console.debug()` function is an alias for {@link console.log()}.
33
29
  */
34
30
  debug(message?: any, ...optionalParams: any[]): void;
35
31
  /**
36
- * Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`.
32
+ * Uses {@link util.inspect()} on `obj` and prints the resulting string to `stdout`.
37
33
  * This function bypasses any custom `inspect()` function defined on `obj`.
38
34
  */
39
35
  dir(obj: any, options?: InspectOptions): void;
40
36
  /**
41
- * This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting
37
+ * This method calls {@link console.log()} passing it the arguments received. Please note that this method does not produce any XML formatting
42
38
  */
43
39
  dirxml(...data: any[]): void;
44
40
  /**
@@ -51,7 +47,7 @@ declare module 'node:console' {
51
47
  */
52
48
  group(...label: any[]): void;
53
49
  /**
54
- * The `console.groupCollapsed()` function is an alias for {@link console.group}.
50
+ * The `console.groupCollapsed()` function is an alias for {@link console.group()}.
55
51
  */
56
52
  groupCollapsed(...label: any[]): void;
57
53
  /**
@@ -59,7 +55,7 @@ declare module 'node:console' {
59
55
  */
60
56
  groupEnd(): void;
61
57
  /**
62
- * The {@link console.info} function is an alias for {@link console.log}.
58
+ * The {@link console.info()} function is an alias for {@link console.log()}.
63
59
  */
64
60
  info(message?: any, ...optionalParams: any[]): void;
65
61
  /**
@@ -76,19 +72,19 @@ declare module 'node:console' {
76
72
  */
77
73
  time(label?: string): void;
78
74
  /**
79
- * Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`.
75
+ * Stops a timer that was previously started by calling {@link console.time()} and prints the result to `stdout`.
80
76
  */
81
77
  timeEnd(label?: string): void;
82
78
  /**
83
- * For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`.
79
+ * For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
84
80
  */
85
81
  timeLog(label?: string, ...data: any[]): void;
86
82
  /**
87
- * Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code.
83
+ * Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
88
84
  */
89
85
  trace(message?: any, ...optionalParams: any[]): void;
90
86
  /**
91
- * The {@link console.warn} function is an alias for {@link console.error}.
87
+ * The {@link console.warn()} function is an alias for {@link console.error()}.
92
88
  */
93
89
  warn(message?: any, ...optionalParams: any[]): void;
94
90
 
@@ -115,15 +111,10 @@ declare module 'node:console' {
115
111
  namespace NodeJS {
116
112
  interface ConsoleConstructorOptions {
117
113
  stdout: WritableStream;
118
- stderr?: WritableStream | undefined;
119
- ignoreErrors?: boolean | undefined;
120
- colorMode?: boolean | 'auto' | undefined;
121
- inspectOptions?: InspectOptions | undefined;
122
- /**
123
- * Set group indentation
124
- * @default 2
125
- */
126
- groupIndentation?: number | undefined;
114
+ stderr?: WritableStream;
115
+ ignoreErrors?: boolean;
116
+ colorMode?: boolean | 'auto';
117
+ inspectOptions?: InspectOptions;
127
118
  }
128
119
 
129
120
  interface ConsoleConstructor {
@@ -11,8 +11,3 @@ declare module 'constants' {
11
11
  typeof fsConstants;
12
12
  export = exp;
13
13
  }
14
-
15
- declare module 'node:constants' {
16
- import constants = require('constants');
17
- export = constants;
18
- }