@types/node 10.12.28 → 10.14.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 v10/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/v10
9
9
 
10
10
  Additional Details
11
- * Last updated: Sat, 02 Mar 2019 01:19:06 GMT
11
+ * Last updated: Tue, 12 Mar 2019 23:39:45 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>.
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>.
node v10/buffer.d.ts CHANGED
@@ -2,6 +2,10 @@ declare module "buffer" {
2
2
  export const INSPECT_MAX_BYTES: number;
3
3
  const BuffType: typeof Buffer;
4
4
 
5
+ export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
6
+
7
+ export function transcode(source: Buffer | Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
8
+
5
9
  export const SlowBuffer: {
6
10
  /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
7
11
  new(size: number): Buffer;
@@ -258,6 +258,7 @@ declare module "child_process" {
258
258
  execArgv?: string[];
259
259
  silent?: boolean;
260
260
  stdio?: StdioOptions;
261
+ detached?: boolean;
261
262
  windowsVerbatimArguments?: boolean;
262
263
  uid?: number;
263
264
  gid?: number;
@@ -293,7 +294,7 @@ declare module "child_process" {
293
294
  stderr: T;
294
295
  status: number;
295
296
  signal: string;
296
- error: Error;
297
+ error?: Error;
297
298
  }
298
299
  function spawnSync(command: string): SpawnSyncReturns<Buffer>;
299
300
  function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
node v10/globals.d.ts CHANGED
@@ -696,6 +696,10 @@ declare namespace NodeJS {
696
696
  destroy(error?: Error): void;
697
697
  }
698
698
 
699
+ interface HRTime {
700
+ (time?: [number, number]): [number, number];
701
+ }
702
+
699
703
  interface Process extends EventEmitter {
700
704
  stdout: WriteStream;
701
705
  stderr: WriteStream;
@@ -766,7 +770,7 @@ declare namespace NodeJS {
766
770
  release: ProcessRelease;
767
771
  umask(mask?: number): number;
768
772
  uptime(): number;
769
- hrtime(time?: [number, number]): [number, number];
773
+ hrtime: HRTime;
770
774
  domain: Domain;
771
775
 
772
776
  // Worker
node v10/http.d.ts CHANGED
@@ -101,8 +101,19 @@ declare module "http" {
101
101
 
102
102
  setTimeout(msecs?: number, callback?: () => void): this;
103
103
  setTimeout(callback: () => void): this;
104
- maxHeadersCount: number;
104
+ /**
105
+ * Limits maximum incoming headers count. If set to 0, no limit will be applied.
106
+ * @default 2000
107
+ * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
108
+ */
109
+ maxHeadersCount: number | null;
105
110
  timeout: number;
111
+ /**
112
+ * Limit the amount of time the parser will wait to receive the complete HTTP headers.
113
+ * @default 40000
114
+ * {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
115
+ */
116
+ headersTimeout: number;
106
117
  keepAliveTimeout: number;
107
118
  }
108
119
 
node v10/https.d.ts CHANGED
@@ -26,7 +26,19 @@ declare module "https" {
26
26
 
27
27
  setTimeout(callback: () => void): this;
28
28
  setTimeout(msecs?: number, callback?: () => void): this;
29
+ /**
30
+ * Limits maximum incoming headers count. If set to 0, no limit will be applied.
31
+ * @default 2000
32
+ * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
33
+ */
34
+ maxHeadersCount: number | null;
29
35
  timeout: number;
36
+ /**
37
+ * Limit the amount of time the parser will wait to receive the complete HTTP headers.
38
+ * @default 40000
39
+ * {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
40
+ */
41
+ headersTimeout: number;
30
42
  keepAliveTimeout: number;
31
43
  }
32
44
 
node v10/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Node.js 10.12
1
+ // Type definitions for Node.js 10.14
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -33,6 +33,8 @@
33
33
  // Jeremie Rodriguez <https://github.com/jeremiergz>
34
34
  // Samuel Ainsworth <https://github.com/samuela>
35
35
  // Kyle Uehlein <https://github.com/kuehlein>
36
+ // Jordi Oliveras Rovira <https://github.com/j-oliveras>
37
+ // Thanik Bhongbhibhat <https://github.com/bhongy>
36
38
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
37
39
 
38
40
  // NOTE: These definitions support NodeJS and TypeScript 3.1.
node v10/net.d.ts CHANGED
@@ -174,7 +174,7 @@ declare module "net" {
174
174
  listen(options: ListenOptions, listeningListener?: Function): this;
175
175
  listen(handle: any, backlog?: number, listeningListener?: Function): this;
176
176
  listen(handle: any, listeningListener?: Function): this;
177
- close(callback?: Function): this;
177
+ close(callback?: (err?: Error) => void): this;
178
178
  address(): AddressInfo | string;
179
179
  getConnections(cb: (error: Error | null, count: number) => void): void;
180
180
  ref(): this;
node v10/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.12.28",
3
+ "version": "10.14.1",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -168,14 +168,24 @@
168
168
  "name": "Kyle Uehlein",
169
169
  "url": "https://github.com/kuehlein",
170
170
  "githubUsername": "kuehlein"
171
+ },
172
+ {
173
+ "name": "Jordi Oliveras Rovira",
174
+ "url": "https://github.com/j-oliveras",
175
+ "githubUsername": "j-oliveras"
176
+ },
177
+ {
178
+ "name": "Thanik Bhongbhibhat",
179
+ "url": "https://github.com/bhongy",
180
+ "githubUsername": "bhongy"
171
181
  }
172
182
  ],
173
183
  "main": "",
174
184
  "types": "index",
175
185
  "typesVersions": {
176
- ">=3.1.0-0": {
186
+ ">=3.2.0-0": {
177
187
  "*": [
178
- "ts3.1/*"
188
+ "ts3.2/*"
179
189
  ]
180
190
  }
181
191
  },
@@ -186,6 +196,6 @@
186
196
  },
187
197
  "scripts": {},
188
198
  "dependencies": {},
189
- "typesPublisherContentHash": "e01b9ccf9e1bb255162aa72b69327e2620b8ef46f6e247cbcac9e4e79c7fb329",
199
+ "typesPublisherContentHash": "d6ef695861167f3db619cfbc794b31326eb148a634ff4675e62ab922024f0d92",
190
200
  "typeScriptVersion": "2.0"
191
201
  }
@@ -0,0 +1,8 @@
1
+ // tslint:disable-next-line:no-bad-reference
2
+ /// <reference path="../globals.d.ts" />
3
+
4
+ declare namespace NodeJS {
5
+ interface HRTime {
6
+ bigint(): bigint;
7
+ }
8
+ }
@@ -1,18 +1,20 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.1.
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.2.
2
2
 
3
3
  // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
4
  // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
5
  // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
- // - ~/ts3.1/index.d.ts - Definitions specific to TypeScript 3.1
6
+ // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
7
7
 
8
8
  // Reference required types from the default lib:
9
9
  /// <reference lib="es2018" />
10
10
  /// <reference lib="esnext.asynciterable" />
11
11
  /// <reference lib="esnext.intl" />
12
+ /// <reference lib="esnext.bigint" />
12
13
 
13
14
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
14
15
  // tslint:disable-next-line:no-bad-reference
15
16
  /// <reference path="../base.d.ts" />
16
17
 
17
- // TypeScript 3.1-specific augmentations:
18
+ // TypeScript 3.2-specific augmentations:
18
19
  /// <reference path="util.d.ts" />
20
+ /// <reference path="globals.d.ts" />
File without changes