@types/node 10.10.0 → 10.11.0

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 +2 -2
  2. node/index.d.ts +57 -35
  3. node/package.json +76 -71
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: Mon, 17 Sep 2018 07:51:26 GMT
11
+ * Last updated: Mon, 24 Sep 2018 20:19:02 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>, Thomas den Hollander <https://github.com/ThomasdenH>, Eugene Y. Q. Shen <https://github.com/eyqs>, Matthieu Sieben <https://github.com/matthieusieben>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/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>.
node/index.d.ts CHANGED
@@ -1,34 +1,35 @@
1
- // Type definitions for Node.js 10.10.x
1
+ // Type definitions for Node.js 10.11.x
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <http://typescriptlang.org>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
5
- // Parambir Singh <https://github.com/parambirs>
6
- // Christian Vaagland Tellnes <https://github.com/tellnes>
7
- // Wilco Bakker <https://github.com/WilcoBakker>
8
- // Nicolas Voigt <https://github.com/octo-sniffle>
5
+ // Alberto Schiabel <https://github.com/jkomyno>
6
+ // Alexander T. <https://github.com/a-tarasyuk>
7
+ // Alvis HT Tang <https://github.com/alvis>
8
+ // Andrew Makarov <https://github.com/r3nya>
9
+ // Bruno Scheufler <https://github.com/brunoscheufler>
9
10
  // Chigozirim C. <https://github.com/smac89>
10
- // Flarna <https://github.com/Flarna>
11
- // Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
12
- // wwwy3y3 <https://github.com/wwwy3y3>
11
+ // Christian Vaagland Tellnes <https://github.com/tellnes>
13
12
  // Deividas Bakanas <https://github.com/DeividasBakanas>
14
- // Kelvin Jin <https://github.com/kjin>
15
- // Alvis HT Tang <https://github.com/alvis>
16
- // Sebastian Silbermann <https://github.com/eps1lon>
13
+ // Eugene Y. Q. Shen <https://github.com/eyqs>
14
+ // Flarna <https://github.com/Flarna>
17
15
  // Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
18
- // Alberto Schiabel <https://github.com/jkomyno>
19
- // Klaus Meinhardt <https://github.com/ajafff>
20
- // Huw <https://github.com/hoo29>
21
- // Nicolas Even <https://github.com/n-e>
22
- // Bruno Scheufler <https://github.com/brunoscheufler>
23
- // Mohsen Azimi <https://github.com/mohsen1>
24
16
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
25
- // Alexander T. <https://github.com/a-tarasyuk>
17
+ // Huw <https://github.com/hoo29>
18
+ // Kelvin Jin <https://github.com/kjin>
19
+ // Klaus Meinhardt <https://github.com/ajafff>
26
20
  // Lishude <https://github.com/islishude>
27
- // Andrew Makarov <https://github.com/r3nya>
28
- // Zane Hannan AU <https://github.com/ZaneHannanAU>
29
- // Thomas den Hollander <https://github.com/ThomasdenH>
30
- // Eugene Y. Q. Shen <https://github.com/eyqs>
21
+ // Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
31
22
  // Matthieu Sieben <https://github.com/matthieusieben>
23
+ // Mohsen Azimi <https://github.com/mohsen1>
24
+ // Nicolas Even <https://github.com/n-e>
25
+ // Nicolas Voigt <https://github.com/octo-sniffle>
26
+ // Parambir Singh <https://github.com/parambirs>
27
+ // Sebastian Silbermann <https://github.com/eps1lon>
28
+ // Simon Schick <https://github.com/SimonSchick>
29
+ // Thomas den Hollander <https://github.com/ThomasdenH>
30
+ // Wilco Bakker <https://github.com/WilcoBakker>
31
+ // wwwy3y3 <https://github.com/wwwy3y3>
32
+ // Zane Hannan AU <https://github.com/ZaneHannanAU>
32
33
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
33
34
 
34
35
  /** inspector module types */
@@ -270,6 +271,7 @@ declare var SlowBuffer: {
270
271
  // Buffer class
271
272
  type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex";
272
273
  interface Buffer extends Uint8Array {
274
+ constructor: typeof Buffer;
273
275
  write(string: string, offset?: number, length?: number, encoding?: string): number;
274
276
  toString(encoding?: string, start?: number, end?: number): string;
275
277
  toJSON(): { type: 'Buffer', data: any[] };
@@ -647,6 +649,14 @@ declare namespace NodeJS {
647
649
  system: number;
648
650
  }
649
651
 
652
+ export interface ProcessRelease {
653
+ name: string;
654
+ sourceUrl?: string;
655
+ headersUrl?: string;
656
+ libUrl?: string;
657
+ lts?: string;
658
+ }
659
+
650
660
  export interface ProcessVersions {
651
661
  http_parser: string;
652
662
  node: string;
@@ -785,6 +795,7 @@ declare namespace NodeJS {
785
795
  memoryUsage(): MemoryUsage;
786
796
  cpuUsage(previousValue?: CpuUsage): CpuUsage;
787
797
  nextTick(callback: Function, ...args: any[]): void;
798
+ release: ProcessRelease;
788
799
  umask(mask?: number): number;
789
800
  uptime(): number;
790
801
  hrtime(time?: [number, number]): [number, number];
@@ -2945,7 +2956,6 @@ declare module "net" {
2945
2956
  connect(port: number, connectionListener?: Function): this;
2946
2957
  connect(path: string, connectionListener?: Function): this;
2947
2958
 
2948
- bufferSize: number;
2949
2959
  setEncoding(encoding?: string): this;
2950
2960
  pause(): this;
2951
2961
  resume(): this;
@@ -2956,15 +2966,16 @@ declare module "net" {
2956
2966
  unref(): void;
2957
2967
  ref(): void;
2958
2968
 
2959
- remoteAddress?: string;
2960
- remoteFamily?: string;
2961
- remotePort?: number;
2962
- localAddress: string;
2963
- localPort: number;
2964
- bytesRead: number;
2965
- bytesWritten: number;
2966
- connecting: boolean;
2967
- destroyed: boolean;
2969
+ readonly bufferSize: number;
2970
+ readonly bytesRead: number;
2971
+ readonly bytesWritten: number;
2972
+ readonly connecting: boolean;
2973
+ readonly destroyed: boolean;
2974
+ readonly localAddress: string;
2975
+ readonly localPort: number;
2976
+ readonly remoteAddress?: string;
2977
+ readonly remoteFamily?: string;
2978
+ readonly remotePort?: number;
2968
2979
 
2969
2980
  // Extended base methods
2970
2981
  end(): void;
@@ -6415,6 +6426,11 @@ declare module "stream" {
6415
6426
 
6416
6427
  export class PassThrough extends Transform { }
6417
6428
 
6429
+ export function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException) => void): () => void;
6430
+ export namespace finished {
6431
+ export function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream): Promise<void>;
6432
+ }
6433
+
6418
6434
  export function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException) => void): T;
6419
6435
  export function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException) => void): T;
6420
6436
  export function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: T, callback?: (err: NodeJS.ErrnoException) => void): T;
@@ -6538,6 +6554,7 @@ declare module "util" {
6538
6554
  export function isArrayBuffer(object: any): object is ArrayBuffer;
6539
6555
  export function isAsyncFunction(object: any): boolean;
6540
6556
  export function isBooleanObject(object: any): object is Boolean;
6557
+ export function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* BigInt */);
6541
6558
  export function isDataView(object: any): object is DataView;
6542
6559
  export function isDate(object: any): object is Date;
6543
6560
  export function isExternal(object: any): boolean;
@@ -7223,15 +7240,20 @@ declare module "http2" {
7223
7240
 
7224
7241
  export interface Http2Stream extends stream.Duplex {
7225
7242
  readonly aborted: boolean;
7226
- close(code?: number, callback?: () => void): void;
7227
7243
  readonly closed: boolean;
7228
7244
  readonly destroyed: boolean;
7229
7245
  readonly pending: boolean;
7230
- priority(options: StreamPriorityOptions): void;
7231
7246
  readonly rstCode: number;
7232
7247
  readonly session: Http2Session;
7233
- setTimeout(msecs: number, callback?: () => void): void;
7234
7248
  readonly state: StreamState;
7249
+ /**
7250
+ * Set the true if the END_STREAM flag was set in the request or response HEADERS frame received,
7251
+ * indicating that no additional data should be received and the readable side of the Http2Stream will be closed.
7252
+ */
7253
+ readonly endAfterHeaders: boolean;
7254
+ close(code?: number, callback?: () => void): void;
7255
+ priority(options: StreamPriorityOptions): void;
7256
+ setTimeout(msecs: number, callback?: () => void): void;
7235
7257
 
7236
7258
  addListener(event: string, listener: (...args: any[]) => void): this;
7237
7259
  addListener(event: "aborted", listener: () => void): this;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.10.0",
3
+ "version": "10.11.0",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -13,24 +13,29 @@
13
13
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped"
14
14
  },
15
15
  {
16
- "name": "Parambir Singh",
17
- "url": "https://github.com/parambirs",
18
- "githubUsername": "parambirs"
16
+ "name": "Alberto Schiabel",
17
+ "url": "https://github.com/jkomyno",
18
+ "githubUsername": "jkomyno"
19
19
  },
20
20
  {
21
- "name": "Christian Vaagland Tellnes",
22
- "url": "https://github.com/tellnes",
23
- "githubUsername": "tellnes"
21
+ "name": "Alexander T.",
22
+ "url": "https://github.com/a-tarasyuk",
23
+ "githubUsername": "a-tarasyuk"
24
24
  },
25
25
  {
26
- "name": "Wilco Bakker",
27
- "url": "https://github.com/WilcoBakker",
28
- "githubUsername": "WilcoBakker"
26
+ "name": "Alvis HT Tang",
27
+ "url": "https://github.com/alvis",
28
+ "githubUsername": "alvis"
29
29
  },
30
30
  {
31
- "name": "Nicolas Voigt",
32
- "url": "https://github.com/octo-sniffle",
33
- "githubUsername": "octo-sniffle"
31
+ "name": "Andrew Makarov",
32
+ "url": "https://github.com/r3nya",
33
+ "githubUsername": "r3nya"
34
+ },
35
+ {
36
+ "name": "Bruno Scheufler",
37
+ "url": "https://github.com/brunoscheufler",
38
+ "githubUsername": "brunoscheufler"
34
39
  },
35
40
  {
36
41
  "name": "Chigozirim C.",
@@ -38,19 +43,9 @@
38
43
  "githubUsername": "smac89"
39
44
  },
40
45
  {
41
- "name": "Flarna",
42
- "url": "https://github.com/Flarna",
43
- "githubUsername": "Flarna"
44
- },
45
- {
46
- "name": "Mariusz Wiktorczyk",
47
- "url": "https://github.com/mwiktorczyk",
48
- "githubUsername": "mwiktorczyk"
49
- },
50
- {
51
- "name": "wwwy3y3",
52
- "url": "https://github.com/wwwy3y3",
53
- "githubUsername": "wwwy3y3"
46
+ "name": "Christian Vaagland Tellnes",
47
+ "url": "https://github.com/tellnes",
48
+ "githubUsername": "tellnes"
54
49
  },
55
50
  {
56
51
  "name": "Deividas Bakanas",
@@ -58,19 +53,14 @@
58
53
  "githubUsername": "DeividasBakanas"
59
54
  },
60
55
  {
61
- "name": "Kelvin Jin",
62
- "url": "https://github.com/kjin",
63
- "githubUsername": "kjin"
64
- },
65
- {
66
- "name": "Alvis HT Tang",
67
- "url": "https://github.com/alvis",
68
- "githubUsername": "alvis"
56
+ "name": "Eugene Y. Q. Shen",
57
+ "url": "https://github.com/eyqs",
58
+ "githubUsername": "eyqs"
69
59
  },
70
60
  {
71
- "name": "Sebastian Silbermann",
72
- "url": "https://github.com/eps1lon",
73
- "githubUsername": "eps1lon"
61
+ "name": "Flarna",
62
+ "url": "https://github.com/Flarna",
63
+ "githubUsername": "Flarna"
74
64
  },
75
65
  {
76
66
  "name": "Hannes Magnusson",
@@ -78,9 +68,19 @@
78
68
  "githubUsername": "Hannes-Magnusson-CK"
79
69
  },
80
70
  {
81
- "name": "Alberto Schiabel",
82
- "url": "https://github.com/jkomyno",
83
- "githubUsername": "jkomyno"
71
+ "name": "Hoàng Văn Khải",
72
+ "url": "https://github.com/KSXGitHub",
73
+ "githubUsername": "KSXGitHub"
74
+ },
75
+ {
76
+ "name": "Huw",
77
+ "url": "https://github.com/hoo29",
78
+ "githubUsername": "hoo29"
79
+ },
80
+ {
81
+ "name": "Kelvin Jin",
82
+ "url": "https://github.com/kjin",
83
+ "githubUsername": "kjin"
84
84
  },
85
85
  {
86
86
  "name": "Klaus Meinhardt",
@@ -88,19 +88,19 @@
88
88
  "githubUsername": "ajafff"
89
89
  },
90
90
  {
91
- "name": "Huw",
92
- "url": "https://github.com/hoo29",
93
- "githubUsername": "hoo29"
91
+ "name": "Lishude",
92
+ "url": "https://github.com/islishude",
93
+ "githubUsername": "islishude"
94
94
  },
95
95
  {
96
- "name": "Nicolas Even",
97
- "url": "https://github.com/n-e",
98
- "githubUsername": "n-e"
96
+ "name": "Mariusz Wiktorczyk",
97
+ "url": "https://github.com/mwiktorczyk",
98
+ "githubUsername": "mwiktorczyk"
99
99
  },
100
100
  {
101
- "name": "Bruno Scheufler",
102
- "url": "https://github.com/brunoscheufler",
103
- "githubUsername": "brunoscheufler"
101
+ "name": "Matthieu Sieben",
102
+ "url": "https://github.com/matthieusieben",
103
+ "githubUsername": "matthieusieben"
104
104
  },
105
105
  {
106
106
  "name": "Mohsen Azimi",
@@ -108,29 +108,29 @@
108
108
  "githubUsername": "mohsen1"
109
109
  },
110
110
  {
111
- "name": "Hoàng Văn Khải",
112
- "url": "https://github.com/KSXGitHub",
113
- "githubUsername": "KSXGitHub"
111
+ "name": "Nicolas Even",
112
+ "url": "https://github.com/n-e",
113
+ "githubUsername": "n-e"
114
114
  },
115
115
  {
116
- "name": "Alexander T.",
117
- "url": "https://github.com/a-tarasyuk",
118
- "githubUsername": "a-tarasyuk"
116
+ "name": "Nicolas Voigt",
117
+ "url": "https://github.com/octo-sniffle",
118
+ "githubUsername": "octo-sniffle"
119
119
  },
120
120
  {
121
- "name": "Lishude",
122
- "url": "https://github.com/islishude",
123
- "githubUsername": "islishude"
121
+ "name": "Parambir Singh",
122
+ "url": "https://github.com/parambirs",
123
+ "githubUsername": "parambirs"
124
124
  },
125
125
  {
126
- "name": "Andrew Makarov",
127
- "url": "https://github.com/r3nya",
128
- "githubUsername": "r3nya"
126
+ "name": "Sebastian Silbermann",
127
+ "url": "https://github.com/eps1lon",
128
+ "githubUsername": "eps1lon"
129
129
  },
130
130
  {
131
- "name": "Zane Hannan AU",
132
- "url": "https://github.com/ZaneHannanAU",
133
- "githubUsername": "ZaneHannanAU"
131
+ "name": "Simon Schick",
132
+ "url": "https://github.com/SimonSchick",
133
+ "githubUsername": "SimonSchick"
134
134
  },
135
135
  {
136
136
  "name": "Thomas den Hollander",
@@ -138,14 +138,19 @@
138
138
  "githubUsername": "ThomasdenH"
139
139
  },
140
140
  {
141
- "name": "Eugene Y. Q. Shen",
142
- "url": "https://github.com/eyqs",
143
- "githubUsername": "eyqs"
141
+ "name": "Wilco Bakker",
142
+ "url": "https://github.com/WilcoBakker",
143
+ "githubUsername": "WilcoBakker"
144
144
  },
145
145
  {
146
- "name": "Matthieu Sieben",
147
- "url": "https://github.com/matthieusieben",
148
- "githubUsername": "matthieusieben"
146
+ "name": "wwwy3y3",
147
+ "url": "https://github.com/wwwy3y3",
148
+ "githubUsername": "wwwy3y3"
149
+ },
150
+ {
151
+ "name": "Zane Hannan AU",
152
+ "url": "https://github.com/ZaneHannanAU",
153
+ "githubUsername": "ZaneHannanAU"
149
154
  }
150
155
  ],
151
156
  "main": "",
@@ -155,6 +160,6 @@
155
160
  },
156
161
  "scripts": {},
157
162
  "dependencies": {},
158
- "typesPublisherContentHash": "f7088d37def05c3c51254c09edeb7b1abb35e4f914a4a064132719ad19c3e27b",
163
+ "typesPublisherContentHash": "9b76eaacf8ee9a3d2a403d873c5b3feebd7a3bd4747efa2121e9331ae8ff9118",
159
164
  "typeScriptVersion": "2.0"
160
165
  }