@types/node 12.0.8 → 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.
- node/README.md +3 -3
- node/child_process.d.ts +3 -2
- node/dns.d.ts +75 -1
- node/globals.d.ts +12 -8
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -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 (
|
|
5
|
+
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
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
|
|
|
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>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, 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>, Matthieu Sieben <https://github.com/matthieusieben>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, 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>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Jeremie Rodriguez <https://github.com/jeremiergz>, Samuel Ainsworth <https://github.com/samuela>, Kyle Uehlein <https://github.com/kuehlein>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, Thanik Bhongbhibhat <https://github.com/bhongy>.
|
|
16
|
+
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, 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>, Matthieu Sieben <https://github.com/matthieusieben>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, 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>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Jeremie Rodriguez <https://github.com/jeremiergz>, Samuel Ainsworth <https://github.com/samuela>, Kyle Uehlein <https://github.com/kuehlein>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, and Thanik Bhongbhibhat <https://github.com/bhongy>.
|
node/child_process.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ declare module "child_process" {
|
|
|
190
190
|
maxBuffer?: number;
|
|
191
191
|
killSignal?: string;
|
|
192
192
|
windowsVerbatimArguments?: boolean;
|
|
193
|
+
shell?: boolean | string;
|
|
193
194
|
}
|
|
194
195
|
interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
|
|
195
196
|
encoding: BufferEncoding;
|
|
@@ -310,8 +311,8 @@ declare module "child_process" {
|
|
|
310
311
|
output: string[];
|
|
311
312
|
stdout: T;
|
|
312
313
|
stderr: T;
|
|
313
|
-
status: number;
|
|
314
|
-
signal: string;
|
|
314
|
+
status: number | null;
|
|
315
|
+
signal: string | null;
|
|
315
316
|
error?: Error;
|
|
316
317
|
}
|
|
317
318
|
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
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
|
|
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/globals.d.ts
CHANGED
|
@@ -1096,22 +1096,26 @@ declare namespace NodeJS {
|
|
|
1096
1096
|
v8debug?: any;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
+
// compatibility with older typings
|
|
1099
1100
|
interface Timer {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1101
|
+
hasRef(): boolean;
|
|
1102
|
+
ref(): this;
|
|
1103
|
+
refresh(): this;
|
|
1104
|
+
unref(): this;
|
|
1103
1105
|
}
|
|
1104
1106
|
|
|
1105
1107
|
class Immediate {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
+
hasRef(): boolean;
|
|
1109
|
+
ref(): this;
|
|
1110
|
+
unref(): this;
|
|
1108
1111
|
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
1109
1112
|
}
|
|
1110
1113
|
|
|
1111
1114
|
class Timeout implements Timer {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
+
hasRef(): boolean;
|
|
1116
|
+
ref(): this;
|
|
1117
|
+
refresh(): this;
|
|
1118
|
+
unref(): this;
|
|
1115
1119
|
}
|
|
1116
1120
|
|
|
1117
1121
|
class Module {
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.0.
|
|
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": "
|
|
209
|
+
"typesPublisherContentHash": "cc75eca51c8dce0d5f071563237151d150523b634dd552a954f5ba7f693beaba",
|
|
210
210
|
"typeScriptVersion": "2.0"
|
|
211
211
|
}
|