@types/node 10.12.26 → 10.12.30

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: Tue, 12 Feb 2019 23:56:54 GMT
11
+ * Last updated: Wed, 06 Mar 2019 19:47:01 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;
@@ -293,7 +293,7 @@ declare module "child_process" {
293
293
  stderr: T;
294
294
  status: number;
295
295
  signal: string;
296
- error: Error;
296
+ error?: Error;
297
297
  }
298
298
  function spawnSync(command: string): SpawnSyncReturns<Buffer>;
299
299
  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
@@ -154,6 +154,7 @@ declare module "http" {
154
154
 
155
155
  constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
156
156
 
157
+ readonly path: string;
157
158
  abort(): void;
158
159
  onSocket(socket: net.Socket): void;
159
160
  setTimeout(timeout: number, callback?: () => void): this;
node v10/index.d.ts CHANGED
@@ -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.26",
3
+ "version": "10.12.30",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -168,23 +168,34 @@
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
  },
182
192
  "repository": {
183
193
  "type": "git",
184
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
194
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
195
+ "directory": "types/node"
185
196
  },
186
197
  "scripts": {},
187
198
  "dependencies": {},
188
- "typesPublisherContentHash": "2c8f33d458fb46388298c54ebcb46317b36890d11399b6de2a80494e865c10d8",
199
+ "typesPublisherContentHash": "4570538e0b32a026b58f68c5324441a36a4da0ba11b9a379b09ce4452dd0dc2c",
189
200
  "typeScriptVersion": "2.0"
190
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
- /// <reference lib="esnext.asyncIterable" />
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