@types/node 13.9.1 → 13.9.5

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 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: Fri, 13 Mar 2020 00:40:52 GMT
11
+ * Last updated: Fri, 27 Mar 2020 16:47:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `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), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [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), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [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), [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), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), and [Surasak Chaisurin](https://github.com/Ryan-Willpower).
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), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [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), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [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), [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), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
node/fs.d.ts CHANGED
@@ -19,20 +19,20 @@ declare module "fs" {
19
19
  isFIFO(): boolean;
20
20
  isSocket(): boolean;
21
21
 
22
- dev: number;
23
- ino: number;
24
- mode: number;
25
- nlink: number;
26
- uid: number;
27
- gid: number;
28
- rdev: number;
29
- size: number;
30
- blksize: number;
31
- blocks: number;
32
- atimeMs: number;
33
- mtimeMs: number;
34
- ctimeMs: number;
35
- birthtimeMs: number;
22
+ dev: T;
23
+ ino: T;
24
+ mode: T;
25
+ nlink: T;
26
+ uid: T;
27
+ gid: T;
28
+ rdev: T;
29
+ size: T;
30
+ blksize: T;
31
+ blocks: T;
32
+ atimeMs: T;
33
+ mtimeMs: T;
34
+ ctimeMs: T;
35
+ birthtimeMs: T;
36
36
  atime: Date;
37
37
  mtime: Date;
38
38
  ctime: Date;
node/globals.d.ts CHANGED
@@ -364,38 +364,38 @@ declare class Buffer extends Uint8Array {
364
364
  readUIntBE(offset: number, byteLength: number): number;
365
365
  readIntLE(offset: number, byteLength: number): number;
366
366
  readIntBE(offset: number, byteLength: number): number;
367
- readUInt8(offset: number): number;
368
- readUInt16LE(offset: number): number;
369
- readUInt16BE(offset: number): number;
370
- readUInt32LE(offset: number): number;
371
- readUInt32BE(offset: number): number;
372
- readInt8(offset: number): number;
373
- readInt16LE(offset: number): number;
374
- readInt16BE(offset: number): number;
375
- readInt32LE(offset: number): number;
376
- readInt32BE(offset: number): number;
377
- readFloatLE(offset: number): number;
378
- readFloatBE(offset: number): number;
379
- readDoubleLE(offset: number): number;
380
- readDoubleBE(offset: number): number;
367
+ readUInt8(offset?: number): number;
368
+ readUInt16LE(offset?: number): number;
369
+ readUInt16BE(offset?: number): number;
370
+ readUInt32LE(offset?: number): number;
371
+ readUInt32BE(offset?: number): number;
372
+ readInt8(offset?: number): number;
373
+ readInt16LE(offset?: number): number;
374
+ readInt16BE(offset?: number): number;
375
+ readInt32LE(offset?: number): number;
376
+ readInt32BE(offset?: number): number;
377
+ readFloatLE(offset?: number): number;
378
+ readFloatBE(offset?: number): number;
379
+ readDoubleLE(offset?: number): number;
380
+ readDoubleBE(offset?: number): number;
381
381
  reverse(): this;
382
382
  swap16(): Buffer;
383
383
  swap32(): Buffer;
384
384
  swap64(): Buffer;
385
- writeUInt8(value: number, offset: number): number;
386
- writeUInt16LE(value: number, offset: number): number;
387
- writeUInt16BE(value: number, offset: number): number;
388
- writeUInt32LE(value: number, offset: number): number;
389
- writeUInt32BE(value: number, offset: number): number;
390
- writeInt8(value: number, offset: number): number;
391
- writeInt16LE(value: number, offset: number): number;
392
- writeInt16BE(value: number, offset: number): number;
393
- writeInt32LE(value: number, offset: number): number;
394
- writeInt32BE(value: number, offset: number): number;
395
- writeFloatLE(value: number, offset: number): number;
396
- writeFloatBE(value: number, offset: number): number;
397
- writeDoubleLE(value: number, offset: number): number;
398
- writeDoubleBE(value: number, offset: number): number;
385
+ writeUInt8(value: number, offset?: number): number;
386
+ writeUInt16LE(value: number, offset?: number): number;
387
+ writeUInt16BE(value: number, offset?: number): number;
388
+ writeUInt32LE(value: number, offset?: number): number;
389
+ writeUInt32BE(value: number, offset?: number): number;
390
+ writeInt8(value: number, offset?: number): number;
391
+ writeInt16LE(value: number, offset?: number): number;
392
+ writeInt16BE(value: number, offset?: number): number;
393
+ writeInt32LE(value: number, offset?: number): number;
394
+ writeInt32BE(value: number, offset?: number): number;
395
+ writeFloatLE(value: number, offset?: number): number;
396
+ writeFloatBE(value: number, offset?: number): number;
397
+ writeDoubleLE(value: number, offset?: number): number;
398
+ writeDoubleBE(value: number, offset?: number): number;
399
399
 
400
400
  fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
401
401
 
node/index.d.ts CHANGED
@@ -31,7 +31,6 @@
31
31
  // Thomas den Hollander <https://github.com/ThomasdenH>
32
32
  // Wilco Bakker <https://github.com/WilcoBakker>
33
33
  // wwwy3y3 <https://github.com/wwwy3y3>
34
- // Zane Hannan AU <https://github.com/ZaneHannanAU>
35
34
  // Samuel Ainsworth <https://github.com/samuela>
36
35
  // Kyle Uehlein <https://github.com/kuehlein>
37
36
  // Jordi Oliveras Rovira <https://github.com/j-oliveras>
@@ -43,6 +42,7 @@
43
42
  // Ilia Baryshnikov <https://github.com/qwelias>
44
43
  // ExE Boss <https://github.com/ExE-Boss>
45
44
  // Surasak Chaisurin <https://github.com/Ryan-Willpower>
45
+ // Piotr Błażejewicz <https://github.com/peterblazejewicz>
46
46
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
47
47
 
48
48
  // NOTE: These definitions support NodeJS and TypeScript 3.5.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.9.1",
3
+ "version": "13.9.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -159,11 +159,6 @@
159
159
  "url": "https://github.com/wwwy3y3",
160
160
  "githubUsername": "wwwy3y3"
161
161
  },
162
- {
163
- "name": "Zane Hannan AU",
164
- "url": "https://github.com/ZaneHannanAU",
165
- "githubUsername": "ZaneHannanAU"
166
- },
167
162
  {
168
163
  "name": "Samuel Ainsworth",
169
164
  "url": "https://github.com/samuela",
@@ -218,6 +213,11 @@
218
213
  "name": "Surasak Chaisurin",
219
214
  "url": "https://github.com/Ryan-Willpower",
220
215
  "githubUsername": "Ryan-Willpower"
216
+ },
217
+ {
218
+ "name": "Piotr Błażejewicz",
219
+ "url": "https://github.com/peterblazejewicz",
220
+ "githubUsername": "peterblazejewicz"
221
221
  }
222
222
  ],
223
223
  "main": "",
@@ -241,6 +241,6 @@
241
241
  },
242
242
  "scripts": {},
243
243
  "dependencies": {},
244
- "typesPublisherContentHash": "c7fe7ef57e965f33d02b1d1b221c35941a9935550535b14917968bbdcc137a43",
244
+ "typesPublisherContentHash": "9ed5f85eadcb83205d46c14fe467bff74e275854fe9f3070ea6cc9b0a0ddea0f",
245
245
  "typeScriptVersion": "2.8"
246
246
  }
node/ts3.2/fs.d.ts CHANGED
@@ -2,14 +2,14 @@
2
2
  /// <reference path="../fs.d.ts" />
3
3
 
4
4
  declare module 'fs' {
5
- interface BigIntStats extends StatsBase<BigInt> {
5
+ interface BigIntStats extends StatsBase<bigint> {
6
6
  }
7
7
 
8
8
  class BigIntStats {
9
- atimeNs: BigInt;
10
- mtimeNs: BigInt;
11
- ctimeNs: BigInt;
12
- birthtimeNs: BigInt;
9
+ atimeNs: bigint;
10
+ mtimeNs: bigint;
11
+ ctimeNs: bigint;
12
+ birthtimeNs: bigint;
13
13
  }
14
14
 
15
15
  interface BigIntOptions {
node/worker_threads.d.ts CHANGED
@@ -5,6 +5,7 @@ declare module "worker_threads" {
5
5
 
6
6
  const isMainThread: boolean;
7
7
  const parentPort: null | MessagePort;
8
+ const SHARE_ENV: unique symbol;
8
9
  const threadId: number;
9
10
  const workerData: any;
10
11
 
@@ -61,6 +62,7 @@ declare module "worker_threads" {
61
62
  * were passed as CLI options to the script.
62
63
  */
63
64
  argv?: any[];
65
+ env?: NodeJS.ProcessEnv | typeof SHARE_ENV;
64
66
  eval?: boolean;
65
67
  workerData?: any;
66
68
  stdin?: boolean;