@types/node 14.18.62 → 14.18.63

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 (84) hide show
  1. node v14.18/README.md +1 -1
  2. node v14.18/assert.d.ts +33 -31
  3. node v14.18/async_hooks.d.ts +27 -20
  4. node v14.18/buffer.d.ts +4 -4
  5. node v14.18/child_process.d.ts +191 -62
  6. node v14.18/cluster.d.ts +59 -28
  7. node v14.18/console.d.ts +6 -6
  8. node v14.18/constants.d.ts +12 -11
  9. node v14.18/crypto.d.ts +232 -228
  10. node v14.18/dgram.d.ts +50 -14
  11. node v14.18/dns.d.ts +183 -54
  12. node v14.18/domain.d.ts +4 -4
  13. node v14.18/events.d.ts +4 -4
  14. node v14.18/fs/promises.d.ts +87 -25
  15. node v14.18/fs.d.ts +404 -104
  16. node v14.18/globals.d.ts +33 -16
  17. node v14.18/http.d.ts +201 -201
  18. node v14.18/http2.d.ts +340 -93
  19. node v14.18/https.d.ts +107 -105
  20. node v14.18/module.d.ts +4 -4
  21. node v14.18/net.d.ts +27 -12
  22. node v14.18/os.d.ts +4 -4
  23. node v14.18/package.json +2 -2
  24. node v14.18/path.d.ts +5 -5
  25. node v14.18/perf_hooks.d.ts +5 -5
  26. node v14.18/process.d.ts +61 -22
  27. node v14.18/punycode.d.ts +3 -3
  28. node v14.18/querystring.d.ts +15 -5
  29. node v14.18/readline.d.ts +16 -6
  30. node v14.18/repl.d.ts +13 -7
  31. node v14.18/stream.d.ts +160 -100
  32. node v14.18/string_decoder.d.ts +3 -3
  33. node v14.18/timers.d.ts +3 -3
  34. node v14.18/tls.d.ts +109 -27
  35. node v14.18/trace_events.d.ts +3 -3
  36. node v14.18/ts4.8/assert.d.ts +33 -31
  37. node v14.18/ts4.8/async_hooks.d.ts +27 -20
  38. node v14.18/ts4.8/buffer.d.ts +4 -4
  39. node v14.18/ts4.8/child_process.d.ts +191 -62
  40. node v14.18/ts4.8/cluster.d.ts +59 -28
  41. node v14.18/ts4.8/console.d.ts +6 -6
  42. node v14.18/ts4.8/constants.d.ts +12 -11
  43. node v14.18/ts4.8/crypto.d.ts +232 -228
  44. node v14.18/ts4.8/dgram.d.ts +50 -14
  45. node v14.18/ts4.8/dns.d.ts +183 -54
  46. node v14.18/ts4.8/domain.d.ts +4 -4
  47. node v14.18/ts4.8/events.d.ts +4 -4
  48. node v14.18/ts4.8/fs/promises.d.ts +87 -25
  49. node v14.18/ts4.8/fs.d.ts +404 -104
  50. node v14.18/ts4.8/globals.d.ts +33 -16
  51. node v14.18/ts4.8/http.d.ts +200 -200
  52. node v14.18/ts4.8/http2.d.ts +340 -93
  53. node v14.18/ts4.8/https.d.ts +107 -105
  54. node v14.18/ts4.8/module.d.ts +4 -4
  55. node v14.18/ts4.8/net.d.ts +27 -12
  56. node v14.18/ts4.8/os.d.ts +4 -4
  57. node v14.18/ts4.8/path.d.ts +5 -5
  58. node v14.18/ts4.8/perf_hooks.d.ts +5 -5
  59. node v14.18/ts4.8/process.d.ts +61 -22
  60. node v14.18/ts4.8/punycode.d.ts +3 -3
  61. node v14.18/ts4.8/querystring.d.ts +15 -5
  62. node v14.18/ts4.8/readline.d.ts +16 -6
  63. node v14.18/ts4.8/repl.d.ts +13 -7
  64. node v14.18/ts4.8/stream.d.ts +160 -100
  65. node v14.18/ts4.8/string_decoder.d.ts +3 -3
  66. node v14.18/ts4.8/timers.d.ts +3 -3
  67. node v14.18/ts4.8/tls.d.ts +109 -27
  68. node v14.18/ts4.8/trace_events.d.ts +3 -3
  69. node v14.18/ts4.8/tty.d.ts +4 -4
  70. node v14.18/ts4.8/url.d.ts +21 -12
  71. node v14.18/ts4.8/util.d.ts +102 -40
  72. node v14.18/ts4.8/v8.d.ts +4 -5
  73. node v14.18/ts4.8/vm.d.ts +7 -7
  74. node v14.18/ts4.8/wasi.d.ts +3 -4
  75. node v14.18/ts4.8/worker_threads.d.ts +8 -8
  76. node v14.18/ts4.8/zlib.d.ts +13 -13
  77. node v14.18/tty.d.ts +4 -4
  78. node v14.18/url.d.ts +21 -12
  79. node v14.18/util.d.ts +102 -40
  80. node v14.18/v8.d.ts +4 -5
  81. node v14.18/vm.d.ts +7 -7
  82. node v14.18/wasi.d.ts +3 -4
  83. node v14.18/worker_threads.d.ts +8 -8
  84. node v14.18/zlib.d.ts +13 -13
@@ -1,16 +1,18 @@
1
- declare module 'https' {
2
- import { Duplex } from 'stream';
3
- import * as tls from 'tls';
4
- import * as http from 'http';
5
- import { URL } from 'url';
1
+ declare module "https" {
2
+ import { Duplex } from "stream";
3
+ import * as tls from "tls";
4
+ import * as http from "http";
5
+ import { URL } from "url";
6
6
 
7
7
  type ServerOptions<
8
8
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
9
9
  Response extends typeof http.ServerResponse = typeof http.ServerResponse,
10
10
  > = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
11
11
 
12
- type RequestOptions = http.RequestOptions &
13
- tls.SecureContextOptions & {
12
+ type RequestOptions =
13
+ & http.RequestOptions
14
+ & tls.SecureContextOptions
15
+ & {
14
16
  checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
15
17
  rejectUnauthorized?: boolean | undefined; // Defaults to true
16
18
  servername?: string | undefined; // SNI TLS Extension
@@ -40,13 +42,13 @@ declare module 'https' {
40
42
  requestListener?: http.RequestListener<Request, Response>,
41
43
  );
42
44
  addListener(event: string, listener: (...args: any[]) => void): this;
43
- addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
45
+ addListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
44
46
  addListener(
45
- event: 'newSession',
47
+ event: "newSession",
46
48
  listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
47
49
  ): this;
48
50
  addListener(
49
- event: 'OCSPRequest',
51
+ event: "OCSPRequest",
50
52
  listener: (
51
53
  certificate: Buffer,
52
54
  issuer: Buffer,
@@ -54,62 +56,62 @@ declare module 'https' {
54
56
  ) => void,
55
57
  ): this;
56
58
  addListener(
57
- event: 'resumeSession',
59
+ event: "resumeSession",
58
60
  listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
59
61
  ): this;
60
- addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
61
- addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
62
- addListener(event: 'close', listener: () => void): this;
63
- addListener(event: 'connection', listener: (socket: Duplex) => void): this;
64
- addListener(event: 'error', listener: (err: Error) => void): this;
65
- addListener(event: 'listening', listener: () => void): this;
66
- addListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
67
- addListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
68
- addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
62
+ addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
63
+ addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
64
+ addListener(event: "close", listener: () => void): this;
65
+ addListener(event: "connection", listener: (socket: Duplex) => void): this;
66
+ addListener(event: "error", listener: (err: Error) => void): this;
67
+ addListener(event: "listening", listener: () => void): this;
68
+ addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
69
+ addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
70
+ addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
69
71
  addListener(
70
- event: 'connect',
72
+ event: "connect",
71
73
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
72
74
  ): this;
73
- addListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
75
+ addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
74
76
  addListener(
75
- event: 'upgrade',
77
+ event: "upgrade",
76
78
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
77
79
  ): this;
78
80
  emit(event: string, ...args: any[]): boolean;
79
- emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean;
81
+ emit(event: "keylog", line: Buffer, tlsSocket: tls.TLSSocket): boolean;
80
82
  emit(
81
- event: 'newSession',
83
+ event: "newSession",
82
84
  sessionId: Buffer,
83
85
  sessionData: Buffer,
84
86
  callback: (err: Error, resp: Buffer) => void,
85
87
  ): boolean;
86
88
  emit(
87
- event: 'OCSPRequest',
89
+ event: "OCSPRequest",
88
90
  certificate: Buffer,
89
91
  issuer: Buffer,
90
92
  callback: (err: Error | null, resp: Buffer) => void,
91
93
  ): boolean;
92
- emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
93
- emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
94
- emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
95
- emit(event: 'close'): boolean;
96
- emit(event: 'connection', socket: Duplex): boolean;
97
- emit(event: 'error', err: Error): boolean;
98
- emit(event: 'listening'): boolean;
99
- emit(event: 'checkContinue', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
100
- emit(event: 'checkExpectation', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
101
- emit(event: 'clientError', err: Error, socket: Duplex): boolean;
102
- emit(event: 'connect', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
103
- emit(event: 'request', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
104
- emit(event: 'upgrade', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
94
+ emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
95
+ emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
96
+ emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
97
+ emit(event: "close"): boolean;
98
+ emit(event: "connection", socket: Duplex): boolean;
99
+ emit(event: "error", err: Error): boolean;
100
+ emit(event: "listening"): boolean;
101
+ emit(event: "checkContinue", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
102
+ emit(event: "checkExpectation", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
103
+ emit(event: "clientError", err: Error, socket: Duplex): boolean;
104
+ emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
105
+ emit(event: "request", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
106
+ emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
105
107
  on(event: string, listener: (...args: any[]) => void): this;
106
- on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
108
+ on(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
107
109
  on(
108
- event: 'newSession',
110
+ event: "newSession",
109
111
  listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
110
112
  ): this;
111
113
  on(
112
- event: 'OCSPRequest',
114
+ event: "OCSPRequest",
113
115
  listener: (
114
116
  certificate: Buffer,
115
117
  issuer: Buffer,
@@ -117,29 +119,29 @@ declare module 'https' {
117
119
  ) => void,
118
120
  ): this;
119
121
  on(
120
- event: 'resumeSession',
122
+ event: "resumeSession",
121
123
  listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
122
124
  ): this;
123
- on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
124
- on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
125
- on(event: 'close', listener: () => void): this;
126
- on(event: 'connection', listener: (socket: Duplex) => void): this;
127
- on(event: 'error', listener: (err: Error) => void): this;
128
- on(event: 'listening', listener: () => void): this;
129
- on(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
130
- on(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
131
- on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
132
- on(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
133
- on(event: 'request', listener: http.RequestListener<Request, Response>): this;
134
- on(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
125
+ on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
126
+ on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
127
+ on(event: "close", listener: () => void): this;
128
+ on(event: "connection", listener: (socket: Duplex) => void): this;
129
+ on(event: "error", listener: (err: Error) => void): this;
130
+ on(event: "listening", listener: () => void): this;
131
+ on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
132
+ on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
133
+ on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
134
+ on(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
135
+ on(event: "request", listener: http.RequestListener<Request, Response>): this;
136
+ on(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
135
137
  once(event: string, listener: (...args: any[]) => void): this;
136
- once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
138
+ once(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
137
139
  once(
138
- event: 'newSession',
140
+ event: "newSession",
139
141
  listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
140
142
  ): this;
141
143
  once(
142
- event: 'OCSPRequest',
144
+ event: "OCSPRequest",
143
145
  listener: (
144
146
  certificate: Buffer,
145
147
  issuer: Buffer,
@@ -147,29 +149,29 @@ declare module 'https' {
147
149
  ) => void,
148
150
  ): this;
149
151
  once(
150
- event: 'resumeSession',
152
+ event: "resumeSession",
151
153
  listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
152
154
  ): this;
153
- once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
154
- once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
155
- once(event: 'close', listener: () => void): this;
156
- once(event: 'connection', listener: (socket: Duplex) => void): this;
157
- once(event: 'error', listener: (err: Error) => void): this;
158
- once(event: 'listening', listener: () => void): this;
159
- once(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
160
- once(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
161
- once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
162
- once(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
163
- once(event: 'request', listener: http.RequestListener<Request, Response>): this;
164
- once(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
155
+ once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
156
+ once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
157
+ once(event: "close", listener: () => void): this;
158
+ once(event: "connection", listener: (socket: Duplex) => void): this;
159
+ once(event: "error", listener: (err: Error) => void): this;
160
+ once(event: "listening", listener: () => void): this;
161
+ once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
162
+ once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
163
+ once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
164
+ once(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
165
+ once(event: "request", listener: http.RequestListener<Request, Response>): this;
166
+ once(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
165
167
  prependListener(event: string, listener: (...args: any[]) => void): this;
166
- prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
168
+ prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
167
169
  prependListener(
168
- event: 'newSession',
170
+ event: "newSession",
169
171
  listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
170
172
  ): this;
171
173
  prependListener(
172
- event: 'OCSPRequest',
174
+ event: "OCSPRequest",
173
175
  listener: (
174
176
  certificate: Buffer,
175
177
  issuer: Buffer,
@@ -177,35 +179,35 @@ declare module 'https' {
177
179
  ) => void,
178
180
  ): this;
179
181
  prependListener(
180
- event: 'resumeSession',
182
+ event: "resumeSession",
181
183
  listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
182
184
  ): this;
183
- prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
184
- prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
185
- prependListener(event: 'close', listener: () => void): this;
186
- prependListener(event: 'connection', listener: (socket: Duplex) => void): this;
187
- prependListener(event: 'error', listener: (err: Error) => void): this;
188
- prependListener(event: 'listening', listener: () => void): this;
189
- prependListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
190
- prependListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
191
- prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
185
+ prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
186
+ prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
187
+ prependListener(event: "close", listener: () => void): this;
188
+ prependListener(event: "connection", listener: (socket: Duplex) => void): this;
189
+ prependListener(event: "error", listener: (err: Error) => void): this;
190
+ prependListener(event: "listening", listener: () => void): this;
191
+ prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
192
+ prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
193
+ prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
192
194
  prependListener(
193
- event: 'connect',
195
+ event: "connect",
194
196
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
195
197
  ): this;
196
- prependListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
198
+ prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
197
199
  prependListener(
198
- event: 'upgrade',
200
+ event: "upgrade",
199
201
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
200
202
  ): this;
201
203
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
202
- prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
204
+ prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
203
205
  prependOnceListener(
204
- event: 'newSession',
206
+ event: "newSession",
205
207
  listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
206
208
  ): this;
207
209
  prependOnceListener(
208
- event: 'OCSPRequest',
210
+ event: "OCSPRequest",
209
211
  listener: (
210
212
  certificate: Buffer,
211
213
  issuer: Buffer,
@@ -213,25 +215,25 @@ declare module 'https' {
213
215
  ) => void,
214
216
  ): this;
215
217
  prependOnceListener(
216
- event: 'resumeSession',
218
+ event: "resumeSession",
217
219
  listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
218
220
  ): this;
219
- prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
220
- prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
221
- prependOnceListener(event: 'close', listener: () => void): this;
222
- prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
223
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
224
- prependOnceListener(event: 'listening', listener: () => void): this;
225
- prependOnceListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
226
- prependOnceListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
227
- prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
221
+ prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
222
+ prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
223
+ prependOnceListener(event: "close", listener: () => void): this;
224
+ prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
225
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
226
+ prependOnceListener(event: "listening", listener: () => void): this;
227
+ prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
228
+ prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
229
+ prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
228
230
  prependOnceListener(
229
- event: 'connect',
231
+ event: "connect",
230
232
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
231
233
  ): this;
232
- prependOnceListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
234
+ prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
233
235
  prependOnceListener(
234
- event: 'upgrade',
236
+ event: "upgrade",
235
237
  listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
236
238
  ): this;
237
239
  }
@@ -267,6 +269,6 @@ declare module 'https' {
267
269
  ): http.ClientRequest;
268
270
  let globalAgent: Agent;
269
271
  }
270
- declare module 'node:https' {
271
- export * from 'https';
272
+ declare module "node:https" {
273
+ export * from "https";
272
274
  }
@@ -1,5 +1,5 @@
1
- declare module 'module' {
2
- import { URL } from 'url';
1
+ declare module "module" {
2
+ import { URL } from "url";
3
3
  namespace Module {
4
4
  /**
5
5
  * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
@@ -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 "node:module" {
54
+ import module = require("module");
55
55
  export = module;
56
56
  }
@@ -1,7 +1,7 @@
1
- declare module 'net' {
2
- import * as stream from 'stream';
3
- import EventEmitter = require('events');
4
- import * as dns from 'dns';
1
+ declare module "net" {
2
+ import * as stream from "stream";
3
+ import EventEmitter = require("events");
4
+ import * as dns from "dns";
5
5
 
6
6
  type LookupFunction = (
7
7
  hostname: string,
@@ -56,7 +56,7 @@ declare module 'net' {
56
56
  }
57
57
 
58
58
  type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
59
- type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
59
+ type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
60
60
 
61
61
  class Socket extends stream.Duplex {
62
62
  constructor(options?: SocketConstructorOpts);
@@ -127,7 +127,10 @@ declare module 'net' {
127
127
  addListener(event: "drain", listener: () => void): this;
128
128
  addListener(event: "end", listener: () => void): this;
129
129
  addListener(event: "error", listener: (err: Error) => void): this;
130
- addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
130
+ addListener(
131
+ event: "lookup",
132
+ listener: (err: Error, address: string, family: string | number, host: string) => void,
133
+ ): this;
131
134
  addListener(event: "ready", listener: () => void): this;
132
135
  addListener(event: "timeout", listener: () => void): this;
133
136
 
@@ -149,7 +152,10 @@ declare module 'net' {
149
152
  on(event: "drain", listener: () => void): this;
150
153
  on(event: "end", listener: () => void): this;
151
154
  on(event: "error", listener: (err: Error) => void): this;
152
- on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
155
+ on(
156
+ event: "lookup",
157
+ listener: (err: Error, address: string, family: string | number, host: string) => void,
158
+ ): this;
153
159
  on(event: "ready", listener: () => void): this;
154
160
  on(event: "timeout", listener: () => void): this;
155
161
 
@@ -160,7 +166,10 @@ declare module 'net' {
160
166
  once(event: "drain", listener: () => void): this;
161
167
  once(event: "end", listener: () => void): this;
162
168
  once(event: "error", listener: (err: Error) => void): this;
163
- once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
169
+ once(
170
+ event: "lookup",
171
+ listener: (err: Error, address: string, family: string | number, host: string) => void,
172
+ ): this;
164
173
  once(event: "ready", listener: () => void): this;
165
174
  once(event: "timeout", listener: () => void): this;
166
175
 
@@ -171,7 +180,10 @@ declare module 'net' {
171
180
  prependListener(event: "drain", listener: () => void): this;
172
181
  prependListener(event: "end", listener: () => void): this;
173
182
  prependListener(event: "error", listener: (err: Error) => void): this;
174
- prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
183
+ prependListener(
184
+ event: "lookup",
185
+ listener: (err: Error, address: string, family: string | number, host: string) => void,
186
+ ): this;
175
187
  prependListener(event: "ready", listener: () => void): this;
176
188
  prependListener(event: "timeout", listener: () => void): this;
177
189
 
@@ -182,7 +194,10 @@ declare module 'net' {
182
194
  prependOnceListener(event: "drain", listener: () => void): this;
183
195
  prependOnceListener(event: "end", listener: () => void): this;
184
196
  prependOnceListener(event: "error", listener: (err: Error) => void): this;
185
- prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this;
197
+ prependOnceListener(
198
+ event: "lookup",
199
+ listener: (err: Error, address: string, family: string | number, host: string) => void,
200
+ ): this;
186
201
  prependOnceListener(event: "ready", listener: () => void): this;
187
202
  prependOnceListener(event: "timeout", listener: () => void): this;
188
203
  }
@@ -304,6 +319,6 @@ declare module 'net' {
304
319
  function isIPv4(input: string): boolean;
305
320
  function isIPv6(input: string): boolean;
306
321
  }
307
- declare module 'node:net' {
308
- export * from 'net';
322
+ declare module "node:net" {
323
+ export * from "net";
309
324
  }
@@ -1,4 +1,4 @@
1
- declare module 'os' {
1
+ declare module "os" {
2
2
  interface CpuInfo {
3
3
  model: string;
4
4
  speed: number;
@@ -49,7 +49,7 @@ declare module 'os' {
49
49
  function release(): string;
50
50
  function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>;
51
51
  function homedir(): string;
52
- function userInfo(options: { encoding: 'buffer' }): UserInfo<Buffer>;
52
+ function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>;
53
53
  function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>;
54
54
 
55
55
  type SignalConstants = {
@@ -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 "node:os" {
242
+ export * from "os";
243
243
  }
@@ -1,4 +1,4 @@
1
- declare module 'path' {
1
+ declare module "path" {
2
2
  namespace path {
3
3
  /**
4
4
  * A parsed path object generated by path.parse() or consumed by path.format().
@@ -122,11 +122,11 @@ declare module 'path' {
122
122
  /**
123
123
  * The platform-specific file separator. '\\' or '/'.
124
124
  */
125
- readonly sep: '\\' | '/';
125
+ readonly sep: "\\" | "/";
126
126
  /**
127
127
  * The platform-specific file delimiter. ';' or ':'.
128
128
  */
129
- readonly delimiter: ';' | ':';
129
+ readonly delimiter: ";" | ":";
130
130
  /**
131
131
  * Returns an object from a path string - the opposite of format().
132
132
  *
@@ -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 "node:path" {
166
+ import path = require("path");
167
167
  export = path;
168
168
  }
@@ -1,7 +1,7 @@
1
- declare module 'perf_hooks' {
2
- import { AsyncResource } from 'async_hooks';
1
+ declare module "perf_hooks" {
2
+ import { AsyncResource } from "async_hooks";
3
3
 
4
- type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
4
+ type EntryType = "node" | "mark" | "measure" | "gc" | "function" | "http2" | "http";
5
5
 
6
6
  interface PerformanceEntry {
7
7
  /**
@@ -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 "node:perf_hooks" {
273
+ export * from "perf_hooks";
274
274
  }
@@ -1,5 +1,5 @@
1
- declare module 'process' {
2
- import * as tty from 'tty';
1
+ declare module "process" {
2
+ import * as tty from "tty";
3
3
 
4
4
  global {
5
5
  var process: NodeJS.Process;
@@ -43,25 +43,59 @@ declare module 'process' {
43
43
  openssl: string;
44
44
  }
45
45
 
46
- type Platform = 'aix'
47
- | 'android'
48
- | 'darwin'
49
- | 'freebsd'
50
- | 'linux'
51
- | 'openbsd'
52
- | 'sunos'
53
- | 'win32'
54
- | 'cygwin'
55
- | 'netbsd';
46
+ type Platform =
47
+ | "aix"
48
+ | "android"
49
+ | "darwin"
50
+ | "freebsd"
51
+ | "linux"
52
+ | "openbsd"
53
+ | "sunos"
54
+ | "win32"
55
+ | "cygwin"
56
+ | "netbsd";
56
57
 
57
58
  type Signals =
58
- "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" |
59
- "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" |
60
- "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" |
61
- "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
62
-
63
- type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection';
64
- type MultipleResolveType = 'resolve' | 'reject';
59
+ | "SIGABRT"
60
+ | "SIGALRM"
61
+ | "SIGBUS"
62
+ | "SIGCHLD"
63
+ | "SIGCONT"
64
+ | "SIGFPE"
65
+ | "SIGHUP"
66
+ | "SIGILL"
67
+ | "SIGINT"
68
+ | "SIGIO"
69
+ | "SIGIOT"
70
+ | "SIGKILL"
71
+ | "SIGPIPE"
72
+ | "SIGPOLL"
73
+ | "SIGPROF"
74
+ | "SIGPWR"
75
+ | "SIGQUIT"
76
+ | "SIGSEGV"
77
+ | "SIGSTKFLT"
78
+ | "SIGSTOP"
79
+ | "SIGSYS"
80
+ | "SIGTERM"
81
+ | "SIGTRAP"
82
+ | "SIGTSTP"
83
+ | "SIGTTIN"
84
+ | "SIGTTOU"
85
+ | "SIGUNUSED"
86
+ | "SIGURG"
87
+ | "SIGUSR1"
88
+ | "SIGUSR2"
89
+ | "SIGVTALRM"
90
+ | "SIGWINCH"
91
+ | "SIGXCPU"
92
+ | "SIGXFSZ"
93
+ | "SIGBREAK"
94
+ | "SIGLOST"
95
+ | "SIGINFO";
96
+
97
+ type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
98
+ type MultipleResolveType = "resolve" | "reject";
65
99
 
66
100
  type BeforeExitListener = (code: number) => void;
67
101
  type DisconnectListener = () => void;
@@ -278,7 +312,12 @@ declare module 'process' {
278
312
  domain: Domain;
279
313
 
280
314
  // Worker
281
- send?(message: any, sendHandle?: any, options?: { swallowErrors?: boolean | undefined}, callback?: (error: Error | null) => void): boolean;
315
+ send?(
316
+ message: any,
317
+ sendHandle?: any,
318
+ options?: { swallowErrors?: boolean | undefined },
319
+ callback?: (error: Error | null) => void,
320
+ ): boolean;
282
321
  disconnect(): void;
283
322
  connected: boolean;
284
323
 
@@ -407,7 +446,7 @@ declare module 'process' {
407
446
 
408
447
  export = process;
409
448
  }
410
- declare module 'node:process' {
411
- import process = require('process');
449
+ declare module "node:process" {
450
+ import process = require("process");
412
451
  export = process;
413
452
  }