@types/node 18.17.17 → 18.17.19

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 (106) hide show
  1. node v18.17/README.md +1 -1
  2. node v18.17/assert/strict.d.ts +4 -4
  3. node v18.17/assert.d.ts +48 -24
  4. node v18.17/async_hooks.d.ts +10 -7
  5. node v18.17/buffer.d.ts +32 -34
  6. node v18.17/child_process.d.ts +262 -122
  7. node v18.17/cluster.d.ts +107 -89
  8. node v18.17/console.d.ts +7 -7
  9. node v18.17/constants.d.ts +12 -11
  10. node v18.17/crypto.d.ts +746 -268
  11. node v18.17/dgram.d.ts +81 -45
  12. node v18.17/diagnostics_channel.d.ts +3 -3
  13. node v18.17/dns/promises.d.ts +28 -25
  14. node v18.17/dns.d.ts +203 -62
  15. node v18.17/dom-events.d.ts +67 -71
  16. node v18.17/domain.d.ts +4 -4
  17. node v18.17/events.d.ts +15 -7
  18. node v18.17/fs/promises.d.ts +102 -73
  19. node v18.17/fs.d.ts +513 -311
  20. node v18.17/globals.d.ts +16 -18
  21. node v18.17/http.d.ts +185 -185
  22. node v18.17/http2.d.ts +628 -376
  23. node v18.17/https.d.ts +107 -105
  24. node v18.17/inspector.d.ts +3 -3
  25. node v18.17/module.d.ts +11 -8
  26. node v18.17/net.d.ts +112 -93
  27. node v18.17/os.d.ts +7 -7
  28. node v18.17/package.json +2 -2
  29. node v18.17/path.d.ts +13 -13
  30. node v18.17/perf_hooks.d.ts +20 -19
  31. node v18.17/process.d.ts +155 -125
  32. node v18.17/punycode.d.ts +3 -3
  33. node v18.17/querystring.d.ts +14 -4
  34. node v18.17/readline/promises.d.ts +5 -5
  35. node v18.17/readline.d.ts +69 -56
  36. node v18.17/repl.d.ts +67 -61
  37. node v18.17/stream/consumers.d.ts +4 -4
  38. node v18.17/stream/promises.d.ts +56 -15
  39. node v18.17/stream/web.d.ts +26 -20
  40. node v18.17/stream.d.ts +356 -226
  41. node v18.17/string_decoder.d.ts +3 -3
  42. node v18.17/test.d.ts +76 -91
  43. node v18.17/timers/promises.d.ts +4 -4
  44. node v18.17/timers.d.ts +23 -8
  45. node v18.17/tls.d.ts +151 -71
  46. node v18.17/trace_events.d.ts +3 -3
  47. node v18.17/ts4.8/assert/strict.d.ts +4 -4
  48. node v18.17/ts4.8/assert.d.ts +48 -24
  49. node v18.17/ts4.8/async_hooks.d.ts +10 -7
  50. node v18.17/ts4.8/buffer.d.ts +32 -34
  51. node v18.17/ts4.8/child_process.d.ts +262 -122
  52. node v18.17/ts4.8/cluster.d.ts +107 -89
  53. node v18.17/ts4.8/console.d.ts +7 -7
  54. node v18.17/ts4.8/constants.d.ts +12 -11
  55. node v18.17/ts4.8/crypto.d.ts +746 -268
  56. node v18.17/ts4.8/dgram.d.ts +81 -45
  57. node v18.17/ts4.8/diagnostics_channel.d.ts +3 -3
  58. node v18.17/ts4.8/dns/promises.d.ts +28 -25
  59. node v18.17/ts4.8/dns.d.ts +203 -62
  60. node v18.17/ts4.8/dom-events.d.ts +67 -71
  61. node v18.17/ts4.8/domain.d.ts +4 -4
  62. node v18.17/ts4.8/events.d.ts +15 -7
  63. node v18.17/ts4.8/fs/promises.d.ts +102 -73
  64. node v18.17/ts4.8/fs.d.ts +514 -312
  65. node v18.17/ts4.8/globals.d.ts +44 -46
  66. node v18.17/ts4.8/http.d.ts +185 -185
  67. node v18.17/ts4.8/http2.d.ts +628 -376
  68. node v18.17/ts4.8/https.d.ts +107 -105
  69. node v18.17/ts4.8/inspector.d.ts +3 -3
  70. node v18.17/ts4.8/module.d.ts +11 -8
  71. node v18.17/ts4.8/net.d.ts +112 -93
  72. node v18.17/ts4.8/os.d.ts +7 -7
  73. node v18.17/ts4.8/path.d.ts +13 -13
  74. node v18.17/ts4.8/perf_hooks.d.ts +20 -19
  75. node v18.17/ts4.8/process.d.ts +155 -125
  76. node v18.17/ts4.8/punycode.d.ts +3 -3
  77. node v18.17/ts4.8/querystring.d.ts +14 -4
  78. node v18.17/ts4.8/readline/promises.d.ts +5 -5
  79. node v18.17/ts4.8/readline.d.ts +69 -56
  80. node v18.17/ts4.8/repl.d.ts +67 -61
  81. node v18.17/ts4.8/stream/consumers.d.ts +4 -4
  82. node v18.17/ts4.8/stream/promises.d.ts +56 -15
  83. node v18.17/ts4.8/stream/web.d.ts +26 -20
  84. node v18.17/ts4.8/stream.d.ts +321 -217
  85. node v18.17/ts4.8/string_decoder.d.ts +3 -3
  86. node v18.17/ts4.8/test.d.ts +75 -90
  87. node v18.17/ts4.8/timers/promises.d.ts +4 -4
  88. node v18.17/ts4.8/timers.d.ts +23 -8
  89. node v18.17/ts4.8/tls.d.ts +151 -71
  90. node v18.17/ts4.8/trace_events.d.ts +3 -3
  91. node v18.17/ts4.8/tty.d.ts +10 -10
  92. node v18.17/ts4.8/url.d.ts +26 -14
  93. node v18.17/ts4.8/util.d.ts +178 -117
  94. node v18.17/ts4.8/v8.d.ts +4 -4
  95. node v18.17/ts4.8/vm.d.ts +60 -42
  96. node v18.17/ts4.8/wasi.d.ts +3 -3
  97. node v18.17/ts4.8/worker_threads.d.ts +82 -85
  98. node v18.17/ts4.8/zlib.d.ts +9 -9
  99. node v18.17/tty.d.ts +10 -10
  100. node v18.17/url.d.ts +26 -14
  101. node v18.17/util.d.ts +178 -117
  102. node v18.17/v8.d.ts +4 -4
  103. node v18.17/vm.d.ts +60 -42
  104. node v18.17/wasi.d.ts +3 -3
  105. node v18.17/worker_threads.d.ts +82 -85
  106. node v18.17/zlib.d.ts +9 -9
@@ -20,9 +20,9 @@ interface ErrorConstructor {
20
20
  ------------------------------------------------*/
21
21
 
22
22
  // For backwards compability
23
- interface NodeRequire extends NodeJS.Require { }
24
- interface RequireResolve extends NodeJS.RequireResolve { }
25
- interface NodeModule extends NodeJS.Module { }
23
+ interface NodeRequire extends NodeJS.Require {}
24
+ interface RequireResolve extends NodeJS.RequireResolve {}
25
+ interface NodeModule extends NodeJS.Module {}
26
26
 
27
27
  declare var process: NodeJS.Process;
28
28
  declare var console: Console;
@@ -41,50 +41,48 @@ declare var exports: any;
41
41
  */
42
42
  declare var gc: undefined | (() => void);
43
43
 
44
- //#region borrowed
44
+ // #region borrowed
45
45
  // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
46
  /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
47
  interface AbortController {
48
- /**
49
- * Returns the AbortSignal object associated with this object.
50
- */
51
-
52
- readonly signal: AbortSignal;
53
- /**
54
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
- */
56
- abort(reason?: any): void;
48
+ /**
49
+ * Returns the AbortSignal object associated with this object.
50
+ */
51
+
52
+ readonly signal: AbortSignal;
53
+ /**
54
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
+ */
56
+ abort(reason?: any): void;
57
57
  }
58
58
 
59
59
  /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
60
  interface AbortSignal extends EventTarget {
61
- /**
62
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
- */
64
- readonly aborted: boolean;
65
- readonly reason: any;
66
- onabort: null | ((this: AbortSignal, event: Event) => any);
67
- throwIfAborted(): void;
61
+ /**
62
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
+ */
64
+ readonly aborted: boolean;
65
+ readonly reason: any;
66
+ onabort: null | ((this: AbortSignal, event: Event) => any);
67
+ throwIfAborted(): void;
68
68
  }
69
69
 
70
- declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
71
- ? T
72
- : {
73
- prototype: AbortController;
74
- new(): AbortController;
75
- };
76
-
77
- declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}
78
- ? T
79
- : {
80
- prototype: AbortSignal;
81
- new(): AbortSignal;
82
- abort(reason?: any): AbortSignal;
83
- timeout(milliseconds: number): AbortSignal;
84
- };
85
- //#endregion borrowed
86
-
87
- //#region ArrayLike.at()
70
+ declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
71
+ : {
72
+ prototype: AbortController;
73
+ new(): AbortController;
74
+ };
75
+
76
+ declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
77
+ : {
78
+ prototype: AbortSignal;
79
+ new(): AbortSignal;
80
+ abort(reason?: any): AbortSignal;
81
+ timeout(milliseconds: number): AbortSignal;
82
+ };
83
+ // #endregion borrowed
84
+
85
+ // #region ArrayLike.at()
88
86
  interface RelativeIndexable<T> {
89
87
  /**
90
88
  * Takes an integer value and returns the item at that index,
@@ -106,7 +104,7 @@ interface Float32Array extends RelativeIndexable<number> {}
106
104
  interface Float64Array extends RelativeIndexable<number> {}
107
105
  interface BigInt64Array extends RelativeIndexable<bigint> {}
108
106
  interface BigUint64Array extends RelativeIndexable<bigint> {}
109
- //#endregion ArrayLike.at() end
107
+ // #endregion ArrayLike.at() end
110
108
 
111
109
  /**
112
110
  * @since v17.0.0
@@ -115,7 +113,7 @@ interface BigUint64Array extends RelativeIndexable<bigint> {}
115
113
  */
116
114
  declare function structuredClone<T>(
117
115
  value: T,
118
- transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
116
+ transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
119
117
  ): T;
120
118
 
121
119
  /*----------------------------------------------*
@@ -212,7 +210,7 @@ declare namespace NodeJS {
212
210
  pause(): this;
213
211
  resume(): this;
214
212
  isPaused(): boolean;
215
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
213
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
216
214
  unpipe(destination?: WritableStream): this;
217
215
  unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
218
216
  wrap(oldStream: ReadableStream): this;
@@ -228,7 +226,7 @@ declare namespace NodeJS {
228
226
  end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
229
227
  }
230
228
 
231
- interface ReadWriteStream extends ReadableStream, WritableStream { }
229
+ interface ReadWriteStream extends ReadableStream, WritableStream {}
232
230
 
233
231
  interface RefCounted {
234
232
  ref(): this;
@@ -261,14 +259,14 @@ declare namespace NodeJS {
261
259
  }
262
260
 
263
261
  interface RequireResolve {
264
- (id: string, options?: { paths?: string[] | undefined; }): string;
262
+ (id: string, options?: { paths?: string[] | undefined }): string;
265
263
  paths(request: string): string[] | null;
266
264
  }
267
265
 
268
266
  interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
269
- '.js': (m: Module, filename: string) => any;
270
- '.json': (m: Module, filename: string) => any;
271
- '.node': (m: Module, filename: string) => any;
267
+ ".js": (m: Module, filename: string) => any;
268
+ ".json": (m: Module, filename: string) => any;
269
+ ".node": (m: Module, filename: string) => any;
272
270
  }
273
271
  interface Module {
274
272
  /**