@types/node 10.7.0 → 10.7.1
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 +2 -2
- node/index.d.ts +29 -5
- node/package.json +7 -2
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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:
|
|
11
|
+
* Last updated: Wed, 15 Aug 2018 20:42:04 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, 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 <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Eugene Y. Q. Shen <https://github.com/eyqs>.
|
|
16
|
+
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Thomas den Hollander <https://github.com/ThomasdenH>, Eugene Y. Q. Shen <https://github.com/eyqs>.
|
node/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
// Lishude <https://github.com/islishude>
|
|
27
27
|
// Andrew Makarov <https://github.com/r3nya>
|
|
28
28
|
// Zane Hannan AU <https://github.com/ZaneHannanAU>
|
|
29
|
+
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
29
30
|
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
30
31
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
31
32
|
|
|
@@ -172,6 +173,10 @@ interface SymbolConstructor {
|
|
|
172
173
|
readonly asyncIterator: symbol;
|
|
173
174
|
}
|
|
174
175
|
declare var Symbol: SymbolConstructor;
|
|
176
|
+
interface SharedArrayBuffer {
|
|
177
|
+
readonly byteLength: number;
|
|
178
|
+
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
179
|
+
}
|
|
175
180
|
|
|
176
181
|
// Node.js ESNEXT support
|
|
177
182
|
interface String {
|
|
@@ -349,13 +354,13 @@ declare var Buffer: {
|
|
|
349
354
|
new(array: Uint8Array): Buffer;
|
|
350
355
|
/**
|
|
351
356
|
* Produces a Buffer backed by the same allocated memory as
|
|
352
|
-
* the given {ArrayBuffer}.
|
|
357
|
+
* the given {ArrayBuffer}/{SharedArrayBuffer}.
|
|
353
358
|
*
|
|
354
359
|
*
|
|
355
360
|
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
356
361
|
* @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
|
|
357
362
|
*/
|
|
358
|
-
new(arrayBuffer: ArrayBuffer): Buffer;
|
|
363
|
+
new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
|
|
359
364
|
/**
|
|
360
365
|
* Allocates a new buffer containing the given {array} of octets.
|
|
361
366
|
*
|
|
@@ -379,8 +384,7 @@ declare var Buffer: {
|
|
|
379
384
|
*
|
|
380
385
|
* @param arrayBuffer The .buffer property of any TypedArray or a new ArrayBuffer()
|
|
381
386
|
*/
|
|
382
|
-
from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
383
|
-
// from(arrayBuffer: SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
387
|
+
from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
384
388
|
/**
|
|
385
389
|
* Creates a new Buffer using the passed {data}
|
|
386
390
|
* @param data data to create a new Buffer
|
|
@@ -418,7 +422,7 @@ declare var Buffer: {
|
|
|
418
422
|
* @param string string to test.
|
|
419
423
|
* @param encoding encoding used to evaluate (defaults to 'utf8')
|
|
420
424
|
*/
|
|
421
|
-
byteLength(string: string | NodeJS.TypedArray | DataView | ArrayBuffer
|
|
425
|
+
byteLength(string: string | NodeJS.TypedArray | DataView | ArrayBuffer | SharedArrayBuffer, encoding?: string): number;
|
|
422
426
|
/**
|
|
423
427
|
* Returns a buffer which is the result of concatenating all the buffers in the list together.
|
|
424
428
|
*
|
|
@@ -2770,6 +2774,7 @@ declare module "dns" {
|
|
|
2770
2774
|
|
|
2771
2775
|
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
|
|
2772
2776
|
export function setServers(servers: string[]): void;
|
|
2777
|
+
export function getServers(): string[];
|
|
2773
2778
|
|
|
2774
2779
|
// Error codes
|
|
2775
2780
|
export var NODATA: string;
|
|
@@ -2796,6 +2801,25 @@ declare module "dns" {
|
|
|
2796
2801
|
export var LOADIPHLPAPI: string;
|
|
2797
2802
|
export var ADDRGETNETWORKPARAMS: string;
|
|
2798
2803
|
export var CANCELLED: string;
|
|
2804
|
+
|
|
2805
|
+
export class Resolver {
|
|
2806
|
+
getServers: typeof getServers;
|
|
2807
|
+
setServers: typeof setServers;
|
|
2808
|
+
resolve: typeof resolve;
|
|
2809
|
+
resolve4: typeof resolve4;
|
|
2810
|
+
resolve6: typeof resolve6;
|
|
2811
|
+
resolveAny: typeof resolveAny;
|
|
2812
|
+
resolveCname: typeof resolveCname;
|
|
2813
|
+
resolveMx: typeof resolveMx;
|
|
2814
|
+
resolveNaptr: typeof resolveNaptr;
|
|
2815
|
+
resolveNs: typeof resolveNs;
|
|
2816
|
+
resolvePtr: typeof resolvePtr;
|
|
2817
|
+
resolveSoa: typeof resolveSoa;
|
|
2818
|
+
resolveSrv: typeof resolveSrv;
|
|
2819
|
+
resolveTxt: typeof resolveTxt;
|
|
2820
|
+
reverse: typeof reverse;
|
|
2821
|
+
cancel(): void;
|
|
2822
|
+
}
|
|
2799
2823
|
}
|
|
2800
2824
|
|
|
2801
2825
|
declare module "net" {
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.1",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -132,6 +132,11 @@
|
|
|
132
132
|
"url": "https://github.com/ZaneHannanAU",
|
|
133
133
|
"githubUsername": "ZaneHannanAU"
|
|
134
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"name": "Thomas den Hollander",
|
|
137
|
+
"url": "https://github.com/ThomasdenH",
|
|
138
|
+
"githubUsername": "ThomasdenH"
|
|
139
|
+
},
|
|
135
140
|
{
|
|
136
141
|
"name": "Eugene Y. Q. Shen",
|
|
137
142
|
"url": "https://github.com/eyqs",
|
|
@@ -145,6 +150,6 @@
|
|
|
145
150
|
},
|
|
146
151
|
"scripts": {},
|
|
147
152
|
"dependencies": {},
|
|
148
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "248a5d08053aa55026b11f7bef8cdcfc8ec8a2aef60811060baca74a735bf1bd",
|
|
149
154
|
"typeScriptVersion": "2.0"
|
|
150
155
|
}
|