@types/node 14.18.61 → 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.
- node v14.18/README.md +1 -1
- node v14.18/assert.d.ts +33 -31
- node v14.18/async_hooks.d.ts +27 -20
- node v14.18/buffer.d.ts +4 -4
- node v14.18/child_process.d.ts +191 -62
- node v14.18/cluster.d.ts +59 -28
- node v14.18/console.d.ts +6 -6
- node v14.18/constants.d.ts +12 -11
- node v14.18/crypto.d.ts +232 -228
- node v14.18/dgram.d.ts +50 -14
- node v14.18/dns.d.ts +183 -54
- node v14.18/domain.d.ts +4 -4
- node v14.18/events.d.ts +4 -4
- node v14.18/fs/promises.d.ts +87 -25
- node v14.18/fs.d.ts +404 -104
- node v14.18/globals.d.ts +33 -16
- node v14.18/http.d.ts +201 -201
- node v14.18/http2.d.ts +340 -93
- node v14.18/https.d.ts +107 -105
- node v14.18/inspector.d.ts +4 -4
- node v14.18/module.d.ts +4 -4
- node v14.18/net.d.ts +27 -12
- node v14.18/os.d.ts +4 -4
- node v14.18/package.json +2 -2
- node v14.18/path.d.ts +5 -5
- node v14.18/perf_hooks.d.ts +5 -5
- node v14.18/process.d.ts +61 -22
- node v14.18/punycode.d.ts +3 -3
- node v14.18/querystring.d.ts +15 -5
- node v14.18/readline.d.ts +16 -6
- node v14.18/repl.d.ts +13 -7
- node v14.18/stream.d.ts +160 -100
- node v14.18/string_decoder.d.ts +3 -3
- node v14.18/timers.d.ts +3 -3
- node v14.18/tls.d.ts +109 -27
- node v14.18/trace_events.d.ts +3 -3
- node v14.18/ts4.8/assert.d.ts +33 -31
- node v14.18/ts4.8/async_hooks.d.ts +27 -20
- node v14.18/ts4.8/buffer.d.ts +4 -4
- node v14.18/ts4.8/child_process.d.ts +191 -62
- node v14.18/ts4.8/cluster.d.ts +59 -28
- node v14.18/ts4.8/console.d.ts +6 -6
- node v14.18/ts4.8/constants.d.ts +12 -11
- node v14.18/ts4.8/crypto.d.ts +232 -228
- node v14.18/ts4.8/dgram.d.ts +50 -14
- node v14.18/ts4.8/dns.d.ts +183 -54
- node v14.18/ts4.8/domain.d.ts +4 -4
- node v14.18/ts4.8/events.d.ts +4 -4
- node v14.18/ts4.8/fs/promises.d.ts +87 -25
- node v14.18/ts4.8/fs.d.ts +404 -104
- node v14.18/ts4.8/globals.d.ts +33 -16
- node v14.18/ts4.8/http.d.ts +200 -200
- node v14.18/ts4.8/http2.d.ts +340 -93
- node v14.18/ts4.8/https.d.ts +107 -105
- node v14.18/ts4.8/inspector.d.ts +4 -4
- node v14.18/ts4.8/module.d.ts +4 -4
- node v14.18/ts4.8/net.d.ts +27 -12
- node v14.18/ts4.8/os.d.ts +4 -4
- node v14.18/ts4.8/path.d.ts +5 -5
- node v14.18/ts4.8/perf_hooks.d.ts +5 -5
- node v14.18/ts4.8/process.d.ts +61 -22
- node v14.18/ts4.8/punycode.d.ts +3 -3
- node v14.18/ts4.8/querystring.d.ts +15 -5
- node v14.18/ts4.8/readline.d.ts +16 -6
- node v14.18/ts4.8/repl.d.ts +13 -7
- node v14.18/ts4.8/stream.d.ts +160 -100
- node v14.18/ts4.8/string_decoder.d.ts +3 -3
- node v14.18/ts4.8/timers.d.ts +3 -3
- node v14.18/ts4.8/tls.d.ts +109 -27
- node v14.18/ts4.8/trace_events.d.ts +3 -3
- node v14.18/ts4.8/tty.d.ts +4 -4
- node v14.18/ts4.8/url.d.ts +21 -12
- node v14.18/ts4.8/util.d.ts +102 -40
- node v14.18/ts4.8/v8.d.ts +4 -5
- node v14.18/ts4.8/vm.d.ts +7 -7
- node v14.18/ts4.8/wasi.d.ts +3 -4
- node v14.18/ts4.8/worker_threads.d.ts +8 -8
- node v14.18/ts4.8/zlib.d.ts +13 -13
- node v14.18/tty.d.ts +4 -4
- node v14.18/url.d.ts +21 -12
- node v14.18/util.d.ts +102 -40
- node v14.18/v8.d.ts +4 -5
- node v14.18/vm.d.ts +7 -7
- node v14.18/wasi.d.ts +3 -4
- node v14.18/worker_threads.d.ts +8 -8
- node v14.18/zlib.d.ts +13 -13
node v14.18/dgram.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import { AddressInfo } from
|
|
3
|
-
import * as dns from
|
|
4
|
-
import EventEmitter = require(
|
|
1
|
+
declare module "dgram" {
|
|
2
|
+
import { AddressInfo } from "net";
|
|
3
|
+
import * as dns from "dns";
|
|
4
|
+
import EventEmitter = require("events");
|
|
5
5
|
|
|
6
6
|
interface RemoteInfo {
|
|
7
7
|
address: string;
|
|
8
|
-
family:
|
|
8
|
+
family: "IPv4" | "IPv6";
|
|
9
9
|
port: number;
|
|
10
10
|
size: number;
|
|
11
11
|
}
|
|
@@ -28,7 +28,13 @@ declare module 'node:dgram' {
|
|
|
28
28
|
ipv6Only?: boolean | undefined;
|
|
29
29
|
recvBufferSize?: number | undefined;
|
|
30
30
|
sendBufferSize?: number | undefined;
|
|
31
|
-
lookup?:
|
|
31
|
+
lookup?:
|
|
32
|
+
| ((
|
|
33
|
+
hostname: string,
|
|
34
|
+
options: dns.LookupOneOptions,
|
|
35
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
36
|
+
) => void)
|
|
37
|
+
| undefined;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
@@ -50,12 +56,42 @@ declare module 'node:dgram' {
|
|
|
50
56
|
getSendBufferSize(): number;
|
|
51
57
|
ref(): this;
|
|
52
58
|
remoteAddress(): AddressInfo;
|
|
53
|
-
send(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
send(
|
|
60
|
+
msg: string | Uint8Array | ReadonlyArray<any>,
|
|
61
|
+
port?: number,
|
|
62
|
+
address?: string,
|
|
63
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
64
|
+
): void;
|
|
65
|
+
send(
|
|
66
|
+
msg: string | Uint8Array | ReadonlyArray<any>,
|
|
67
|
+
port?: number,
|
|
68
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
69
|
+
): void;
|
|
70
|
+
send(
|
|
71
|
+
msg: string | Uint8Array | ReadonlyArray<any>,
|
|
72
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
73
|
+
): void;
|
|
74
|
+
send(
|
|
75
|
+
msg: string | Uint8Array,
|
|
76
|
+
offset: number,
|
|
77
|
+
length: number,
|
|
78
|
+
port?: number,
|
|
79
|
+
address?: string,
|
|
80
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
81
|
+
): void;
|
|
82
|
+
send(
|
|
83
|
+
msg: string | Uint8Array,
|
|
84
|
+
offset: number,
|
|
85
|
+
length: number,
|
|
86
|
+
port?: number,
|
|
87
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
88
|
+
): void;
|
|
89
|
+
send(
|
|
90
|
+
msg: string | Uint8Array,
|
|
91
|
+
offset: number,
|
|
92
|
+
length: number,
|
|
93
|
+
callback?: (error: Error | null, bytes: number) => void,
|
|
94
|
+
): void;
|
|
59
95
|
setBroadcast(flag: boolean): void;
|
|
60
96
|
setMulticastInterface(multicastInterface: string): void;
|
|
61
97
|
setMulticastLoopback(flag: boolean): boolean;
|
|
@@ -139,6 +175,6 @@ declare module 'node:dgram' {
|
|
|
139
175
|
prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
140
176
|
}
|
|
141
177
|
}
|
|
142
|
-
declare module
|
|
143
|
-
export * from
|
|
178
|
+
declare module "node:dgram" {
|
|
179
|
+
export * from "dgram";
|
|
144
180
|
}
|
node v14.18/dns.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module "dns" {
|
|
2
2
|
// Supported getaddrinfo flags.
|
|
3
3
|
const ADDRCONFIG: number;
|
|
4
4
|
const V4MAPPED: number;
|
|
@@ -28,11 +28,30 @@ declare module 'node:dns' {
|
|
|
28
28
|
family: number;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function lookup(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
function lookup(
|
|
32
|
+
hostname: string,
|
|
33
|
+
family: number,
|
|
34
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
35
|
+
): void;
|
|
36
|
+
function lookup(
|
|
37
|
+
hostname: string,
|
|
38
|
+
options: LookupOneOptions,
|
|
39
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
40
|
+
): void;
|
|
41
|
+
function lookup(
|
|
42
|
+
hostname: string,
|
|
43
|
+
options: LookupAllOptions,
|
|
44
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void,
|
|
45
|
+
): void;
|
|
46
|
+
function lookup(
|
|
47
|
+
hostname: string,
|
|
48
|
+
options: LookupOptions,
|
|
49
|
+
callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void,
|
|
50
|
+
): void;
|
|
51
|
+
function lookup(
|
|
52
|
+
hostname: string,
|
|
53
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
54
|
+
): void;
|
|
36
55
|
|
|
37
56
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
38
57
|
namespace lookup {
|
|
@@ -41,10 +60,14 @@ declare module 'node:dns' {
|
|
|
41
60
|
function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
function lookupService(
|
|
63
|
+
function lookupService(
|
|
64
|
+
address: string,
|
|
65
|
+
port: number,
|
|
66
|
+
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void,
|
|
67
|
+
): void;
|
|
45
68
|
|
|
46
69
|
namespace lookupService {
|
|
47
|
-
function __promisify__(address: string, port: number): Promise<{ hostname: string
|
|
70
|
+
function __promisify__(address: string, port: number): Promise<{ hostname: string; service: string }>;
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
interface ResolveOptions {
|
|
@@ -138,33 +161,84 @@ declare module 'node:dns' {
|
|
|
138
161
|
value: string;
|
|
139
162
|
}
|
|
140
163
|
|
|
141
|
-
type AnyRecord =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
function resolve(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function resolve(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
function resolve(
|
|
163
|
-
|
|
164
|
+
type AnyRecord =
|
|
165
|
+
| AnyARecord
|
|
166
|
+
| AnyAaaaRecord
|
|
167
|
+
| AnyCnameRecord
|
|
168
|
+
| AnyMxRecord
|
|
169
|
+
| AnyNaptrRecord
|
|
170
|
+
| AnyNsRecord
|
|
171
|
+
| AnyPtrRecord
|
|
172
|
+
| AnySoaRecord
|
|
173
|
+
| AnySrvRecord
|
|
174
|
+
| AnyTxtRecord;
|
|
175
|
+
|
|
176
|
+
function resolve(
|
|
177
|
+
hostname: string,
|
|
178
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
179
|
+
): void;
|
|
180
|
+
function resolve(
|
|
181
|
+
hostname: string,
|
|
182
|
+
rrtype: "A",
|
|
183
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
184
|
+
): void;
|
|
185
|
+
function resolve(
|
|
186
|
+
hostname: string,
|
|
187
|
+
rrtype: "AAAA",
|
|
188
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
189
|
+
): void;
|
|
190
|
+
function resolve(
|
|
191
|
+
hostname: string,
|
|
192
|
+
rrtype: "ANY",
|
|
193
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
|
|
194
|
+
): void;
|
|
195
|
+
function resolve(
|
|
196
|
+
hostname: string,
|
|
197
|
+
rrtype: "CNAME",
|
|
198
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
199
|
+
): void;
|
|
200
|
+
function resolve(
|
|
201
|
+
hostname: string,
|
|
202
|
+
rrtype: "MX",
|
|
203
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
|
|
204
|
+
): void;
|
|
205
|
+
function resolve(
|
|
206
|
+
hostname: string,
|
|
207
|
+
rrtype: "NAPTR",
|
|
208
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
|
|
209
|
+
): void;
|
|
210
|
+
function resolve(
|
|
211
|
+
hostname: string,
|
|
212
|
+
rrtype: "NS",
|
|
213
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
214
|
+
): void;
|
|
215
|
+
function resolve(
|
|
216
|
+
hostname: string,
|
|
217
|
+
rrtype: "PTR",
|
|
218
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
219
|
+
): void;
|
|
220
|
+
function resolve(
|
|
221
|
+
hostname: string,
|
|
222
|
+
rrtype: "SOA",
|
|
223
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
|
|
224
|
+
): void;
|
|
225
|
+
function resolve(
|
|
226
|
+
hostname: string,
|
|
227
|
+
rrtype: "SRV",
|
|
228
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
|
|
229
|
+
): void;
|
|
230
|
+
function resolve(
|
|
231
|
+
hostname: string,
|
|
232
|
+
rrtype: "TXT",
|
|
233
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
|
|
234
|
+
): void;
|
|
164
235
|
function resolve(
|
|
165
236
|
hostname: string,
|
|
166
237
|
rrtype: string,
|
|
167
|
-
callback: (
|
|
238
|
+
callback: (
|
|
239
|
+
err: NodeJS.ErrnoException | null,
|
|
240
|
+
addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[],
|
|
241
|
+
) => void,
|
|
168
242
|
): void;
|
|
169
243
|
|
|
170
244
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
@@ -176,12 +250,26 @@ declare module 'node:dns' {
|
|
|
176
250
|
function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
177
251
|
function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
178
252
|
function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
179
|
-
function __promisify__(
|
|
253
|
+
function __promisify__(
|
|
254
|
+
hostname: string,
|
|
255
|
+
rrtype: string,
|
|
256
|
+
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
180
257
|
}
|
|
181
258
|
|
|
182
|
-
function resolve4(
|
|
183
|
-
|
|
184
|
-
|
|
259
|
+
function resolve4(
|
|
260
|
+
hostname: string,
|
|
261
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
262
|
+
): void;
|
|
263
|
+
function resolve4(
|
|
264
|
+
hostname: string,
|
|
265
|
+
options: ResolveWithTtlOptions,
|
|
266
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
|
|
267
|
+
): void;
|
|
268
|
+
function resolve4(
|
|
269
|
+
hostname: string,
|
|
270
|
+
options: ResolveOptions,
|
|
271
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
|
|
272
|
+
): void;
|
|
185
273
|
|
|
186
274
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
187
275
|
namespace resolve4 {
|
|
@@ -190,9 +278,20 @@ declare module 'node:dns' {
|
|
|
190
278
|
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
191
279
|
}
|
|
192
280
|
|
|
193
|
-
function resolve6(
|
|
194
|
-
|
|
195
|
-
|
|
281
|
+
function resolve6(
|
|
282
|
+
hostname: string,
|
|
283
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
284
|
+
): void;
|
|
285
|
+
function resolve6(
|
|
286
|
+
hostname: string,
|
|
287
|
+
options: ResolveWithTtlOptions,
|
|
288
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
|
|
289
|
+
): void;
|
|
290
|
+
function resolve6(
|
|
291
|
+
hostname: string,
|
|
292
|
+
options: ResolveOptions,
|
|
293
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
|
|
294
|
+
): void;
|
|
196
295
|
|
|
197
296
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
198
297
|
namespace resolve6 {
|
|
@@ -201,47 +300,74 @@ declare module 'node:dns' {
|
|
|
201
300
|
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
202
301
|
}
|
|
203
302
|
|
|
204
|
-
function resolveCname(
|
|
303
|
+
function resolveCname(
|
|
304
|
+
hostname: string,
|
|
305
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
306
|
+
): void;
|
|
205
307
|
namespace resolveCname {
|
|
206
308
|
function __promisify__(hostname: string): Promise<string[]>;
|
|
207
309
|
}
|
|
208
310
|
|
|
209
|
-
function resolveMx(
|
|
311
|
+
function resolveMx(
|
|
312
|
+
hostname: string,
|
|
313
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
|
|
314
|
+
): void;
|
|
210
315
|
namespace resolveMx {
|
|
211
316
|
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
212
317
|
}
|
|
213
318
|
|
|
214
|
-
function resolveNaptr(
|
|
319
|
+
function resolveNaptr(
|
|
320
|
+
hostname: string,
|
|
321
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
|
|
322
|
+
): void;
|
|
215
323
|
namespace resolveNaptr {
|
|
216
324
|
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
217
325
|
}
|
|
218
326
|
|
|
219
|
-
function resolveNs(
|
|
327
|
+
function resolveNs(
|
|
328
|
+
hostname: string,
|
|
329
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
330
|
+
): void;
|
|
220
331
|
namespace resolveNs {
|
|
221
332
|
function __promisify__(hostname: string): Promise<string[]>;
|
|
222
333
|
}
|
|
223
334
|
|
|
224
|
-
function resolvePtr(
|
|
335
|
+
function resolvePtr(
|
|
336
|
+
hostname: string,
|
|
337
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
338
|
+
): void;
|
|
225
339
|
namespace resolvePtr {
|
|
226
340
|
function __promisify__(hostname: string): Promise<string[]>;
|
|
227
341
|
}
|
|
228
342
|
|
|
229
|
-
function resolveSoa(
|
|
343
|
+
function resolveSoa(
|
|
344
|
+
hostname: string,
|
|
345
|
+
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
|
|
346
|
+
): void;
|
|
230
347
|
namespace resolveSoa {
|
|
231
348
|
function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
232
349
|
}
|
|
233
350
|
|
|
234
|
-
function resolveSrv(
|
|
351
|
+
function resolveSrv(
|
|
352
|
+
hostname: string,
|
|
353
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
|
|
354
|
+
): void;
|
|
235
355
|
namespace resolveSrv {
|
|
236
356
|
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
237
357
|
}
|
|
238
358
|
|
|
239
|
-
function resolveTxt(
|
|
359
|
+
function resolveTxt(
|
|
360
|
+
hostname: string,
|
|
361
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
|
|
362
|
+
): void;
|
|
240
363
|
namespace resolveTxt {
|
|
241
364
|
function __promisify__(hostname: string): Promise<string[][]>;
|
|
242
365
|
}
|
|
243
366
|
|
|
244
|
-
function resolveAny(
|
|
367
|
+
function resolveAny(
|
|
368
|
+
hostname: string,
|
|
369
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
|
|
370
|
+
): void;
|
|
245
371
|
namespace resolveAny {
|
|
246
372
|
function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
|
247
373
|
}
|
|
@@ -250,7 +376,7 @@ declare module 'node:dns' {
|
|
|
250
376
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
251
377
|
function getServers(): string[];
|
|
252
378
|
|
|
253
|
-
function setDefaultResultOrder(order:
|
|
379
|
+
function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
|
254
380
|
|
|
255
381
|
// Error codes
|
|
256
382
|
const NODATA: string;
|
|
@@ -312,7 +438,7 @@ declare module 'node:dns' {
|
|
|
312
438
|
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
313
439
|
function lookup(hostname: string): Promise<LookupAddress>;
|
|
314
440
|
|
|
315
|
-
function lookupService(address: string, port: number): Promise<{ hostname: string
|
|
441
|
+
function lookupService(address: string, port: number): Promise<{ hostname: string; service: string }>;
|
|
316
442
|
|
|
317
443
|
function resolve(hostname: string): Promise<string[]>;
|
|
318
444
|
function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
|
|
@@ -326,7 +452,10 @@ declare module 'node:dns' {
|
|
|
326
452
|
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
327
453
|
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
328
454
|
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
329
|
-
function resolve(
|
|
455
|
+
function resolve(
|
|
456
|
+
hostname: string,
|
|
457
|
+
rrtype: string,
|
|
458
|
+
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
330
459
|
|
|
331
460
|
function resolve4(hostname: string): Promise<string[]>;
|
|
332
461
|
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
@@ -358,7 +487,7 @@ declare module 'node:dns' {
|
|
|
358
487
|
|
|
359
488
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
360
489
|
|
|
361
|
-
function setDefaultResultOrder(order:
|
|
490
|
+
function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
|
362
491
|
|
|
363
492
|
class Resolver {
|
|
364
493
|
constructor(options?: ResolverOptions);
|
|
@@ -382,6 +511,6 @@ declare module 'node:dns' {
|
|
|
382
511
|
}
|
|
383
512
|
}
|
|
384
513
|
}
|
|
385
|
-
declare module
|
|
386
|
-
export * from
|
|
514
|
+
declare module "node:dns" {
|
|
515
|
+
export * from "dns";
|
|
387
516
|
}
|
node v14.18/domain.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import EventEmitter = require(
|
|
1
|
+
declare module "domain" {
|
|
2
|
+
import EventEmitter = require("events");
|
|
3
3
|
|
|
4
4
|
global {
|
|
5
5
|
namespace NodeJS {
|
|
@@ -22,6 +22,6 @@ declare module 'node:domain' {
|
|
|
22
22
|
|
|
23
23
|
function create(): Domain;
|
|
24
24
|
}
|
|
25
|
-
declare module
|
|
26
|
-
export * from
|
|
25
|
+
declare module "node:domain" {
|
|
26
|
+
export * from "domain";
|
|
27
27
|
}
|
node v14.18/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module "events" {
|
|
2
2
|
interface EventEmitterOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Enables automatic capturing of promise rejection.
|
|
@@ -45,7 +45,7 @@ declare module 'node:events' {
|
|
|
45
45
|
static defaultMaxListeners: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
import internal = require(
|
|
48
|
+
import internal = require("events");
|
|
49
49
|
namespace EventEmitter {
|
|
50
50
|
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
51
51
|
export { internal as EventEmitter };
|
|
@@ -76,7 +76,7 @@ declare module 'node:events' {
|
|
|
76
76
|
|
|
77
77
|
export = EventEmitter;
|
|
78
78
|
}
|
|
79
|
-
declare module
|
|
80
|
-
import events = require(
|
|
79
|
+
declare module "node:events" {
|
|
80
|
+
import events = require("events");
|
|
81
81
|
export = events;
|
|
82
82
|
}
|