@types/node 12.0.11 → 12.0.12

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 (3) hide show
  1. node/README.md +1 -1
  2. node/dns.d.ts +75 -1
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
9
9
 
10
10
  Additional Details
11
- * Last updated: Wed, 03 Jul 2019 16:38:47 GMT
11
+ * Last updated: Wed, 03 Jul 2019 17:20:32 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
14
14
 
node/dns.d.ts CHANGED
@@ -242,7 +242,7 @@ declare module "dns" {
242
242
  }
243
243
 
244
244
  function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
245
- function setServers(servers: string[]): void;
245
+ function setServers(servers: ReadonlyArray<string>): void;
246
246
  function getServers(): string[];
247
247
 
248
248
  // Error codes
@@ -289,4 +289,78 @@ declare module "dns" {
289
289
  reverse: typeof reverse;
290
290
  cancel(): void;
291
291
  }
292
+
293
+ namespace promises {
294
+ function getServers(): string[];
295
+
296
+ function lookup(hostname: string, family: number): Promise<LookupAddress>;
297
+ function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
298
+ function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
299
+ function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
300
+ function lookup(hostname: string): Promise<LookupAddress>;
301
+
302
+ function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
303
+
304
+ function resolve(hostname: string): Promise<string[]>;
305
+ function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
306
+ function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
307
+ function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
308
+ function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
309
+ function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
310
+ function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
311
+ function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
312
+ function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
313
+ function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
314
+ function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
315
+ function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
316
+ function resolve(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
317
+
318
+ function resolve4(hostname: string): Promise<string[]>;
319
+ function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
320
+ function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
321
+
322
+ function resolve6(hostname: string): Promise<string[]>;
323
+ function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
324
+ function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
325
+
326
+ function resolveAny(hostname: string): Promise<AnyRecord[]>;
327
+
328
+ function resolveCname(hostname: string): Promise<string[]>;
329
+
330
+ function resolveMx(hostname: string): Promise<MxRecord[]>;
331
+
332
+ function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
333
+
334
+ function resolveNs(hostname: string): Promise<string[]>;
335
+
336
+ function resolvePtr(hostname: string): Promise<string[]>;
337
+
338
+ function resolveSoa(hostname: string): Promise<SoaRecord>;
339
+
340
+ function resolveSrv(hostname: string): Promise<SrvRecord[]>;
341
+
342
+ function resolveTxt(hostname: string): Promise<string[][]>;
343
+
344
+ function reverse(ip: string): Promise<string[]>;
345
+
346
+ function setServers(servers: ReadonlyArray<string>): void;
347
+
348
+ class Resolver {
349
+ getServers: typeof getServers;
350
+ resolve: typeof resolve;
351
+ resolve4: typeof resolve4;
352
+ resolve6: typeof resolve6;
353
+ resolveAny: typeof resolveAny;
354
+ resolveCname: typeof resolveCname;
355
+ resolveMx: typeof resolveMx;
356
+ resolveNaptr: typeof resolveNaptr;
357
+ resolveNs: typeof resolveNs;
358
+ resolvePtr: typeof resolvePtr;
359
+ resolveSoa: typeof resolveSoa;
360
+ resolveSrv: typeof resolveSrv;
361
+ resolveTxt: typeof resolveTxt;
362
+ reverse: typeof reverse;
363
+ setServers: typeof setServers;
364
+ }
365
+ }
292
366
  }
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.0.11",
3
+ "version": "12.0.12",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -206,6 +206,6 @@
206
206
  },
207
207
  "scripts": {},
208
208
  "dependencies": {},
209
- "typesPublisherContentHash": "ae801044cf633bfa48debde89748e0a8590a5f67b0ee1fc47b2eb04af1e50ad1",
209
+ "typesPublisherContentHash": "cc75eca51c8dce0d5f071563237151d150523b634dd552a954f5ba7f693beaba",
210
210
  "typeScriptVersion": "2.0"
211
211
  }