@types/node 10.14.9 → 10.14.13
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 v10/README.md +3 -3
- node v10/child_process.d.ts +3 -2
- node v10/dns.d.ts +75 -1
- node v10/fs.d.ts +1 -0
- node v10/globals.d.ts +10 -9
- node v10/package.json +2 -2
node v10/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/v10
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 17 Jul 2019 18:37:30 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, 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>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, 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>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, 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 v10/child_process.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ declare module "child_process" {
|
|
|
162
162
|
gid?: number;
|
|
163
163
|
windowsHide?: boolean;
|
|
164
164
|
windowsVerbatimArguments?: boolean;
|
|
165
|
+
shell?: boolean | string;
|
|
165
166
|
}
|
|
166
167
|
interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
|
|
167
168
|
encoding: BufferEncoding;
|
|
@@ -292,8 +293,8 @@ declare module "child_process" {
|
|
|
292
293
|
output: string[];
|
|
293
294
|
stdout: T;
|
|
294
295
|
stderr: T;
|
|
295
|
-
status: number;
|
|
296
|
-
signal: string;
|
|
296
|
+
status: number | null;
|
|
297
|
+
signal: string | null;
|
|
297
298
|
error?: Error;
|
|
298
299
|
}
|
|
299
300
|
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
node v10/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 v10/fs.d.ts
CHANGED
node v10/globals.d.ts
CHANGED
|
@@ -716,7 +716,7 @@ declare namespace NodeJS {
|
|
|
716
716
|
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
|
|
717
717
|
env: ProcessEnv;
|
|
718
718
|
exit(code?: number): never;
|
|
719
|
-
exitCode
|
|
719
|
+
exitCode?: number;
|
|
720
720
|
getgid(): number;
|
|
721
721
|
setgid(id: number | string): void;
|
|
722
722
|
getuid(): number;
|
|
@@ -958,21 +958,22 @@ declare namespace NodeJS {
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
interface Timer {
|
|
961
|
-
ref():
|
|
962
|
-
refresh():
|
|
963
|
-
unref():
|
|
961
|
+
ref(): this;
|
|
962
|
+
refresh(): this;
|
|
963
|
+
unref(): this;
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
class Immediate {
|
|
967
|
-
ref():
|
|
968
|
-
|
|
967
|
+
ref(): this;
|
|
968
|
+
refresh(): this;
|
|
969
|
+
unref(): this;
|
|
969
970
|
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
970
971
|
}
|
|
971
972
|
|
|
972
973
|
class Timeout implements Timer {
|
|
973
|
-
ref():
|
|
974
|
-
refresh():
|
|
975
|
-
unref():
|
|
974
|
+
ref(): this;
|
|
975
|
+
refresh(): this;
|
|
976
|
+
unref(): this;
|
|
976
977
|
}
|
|
977
978
|
|
|
978
979
|
class Module {
|
node v10/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.13",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -196,6 +196,6 @@
|
|
|
196
196
|
},
|
|
197
197
|
"scripts": {},
|
|
198
198
|
"dependencies": {},
|
|
199
|
-
"typesPublisherContentHash": "
|
|
199
|
+
"typesPublisherContentHash": "faced4dc1125571bcc63ad97f216063410ff94b60aa9c46d3df1c7266a236ad4",
|
|
200
200
|
"typeScriptVersion": "2.0"
|
|
201
201
|
}
|