@types/node 12.20.31 → 12.20.35

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 v12.20/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 13 Oct 2021 17:31:23 GMT
11
+ * Last updated: Mon, 25 Oct 2021 15:01:22 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__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), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [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), [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), [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), and [ExE Boss](https://github.com/ExE-Boss).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [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), [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), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), and [ExE Boss](https://github.com/ExE-Boss).
node v12.20/dgram.d.ts CHANGED
@@ -37,11 +37,11 @@ declare module 'dgram' {
37
37
  class Socket extends EventEmitter {
38
38
  addMembership(multicastAddress: string, multicastInterface?: string): void;
39
39
  address(): AddressInfo;
40
- bind(port?: number, address?: string, callback?: () => void): void;
41
- bind(port?: number, callback?: () => void): void;
42
- bind(callback?: () => void): void;
43
- bind(options: BindOptions, callback?: () => void): void;
44
- close(callback?: () => void): void;
40
+ bind(port?: number, address?: string, callback?: () => void): this;
41
+ bind(port?: number, callback?: () => void): this;
42
+ bind(callback?: () => void): this;
43
+ bind(options: BindOptions, callback?: () => void): this;
44
+ close(callback?: () => void): this;
45
45
  connect(port: number, address?: string, callback?: () => void): void;
46
46
  connect(port: number, callback: () => void): void;
47
47
  disconnect(): void;
@@ -59,7 +59,7 @@ declare module 'dgram' {
59
59
  setBroadcast(flag: boolean): void;
60
60
  setMulticastInterface(multicastInterface: string): void;
61
61
  setMulticastLoopback(flag: boolean): boolean;
62
- setMulticastTTL(ttl: number): void;
62
+ setMulticastTTL(ttl: number): number;
63
63
  setRecvBufferSize(size: number): void;
64
64
  setSendBufferSize(size: number): void;
65
65
  setTTL(ttl: number): number;
node v12.20/fs.d.ts CHANGED
@@ -2008,13 +2008,13 @@ declare module 'fs' {
2008
2008
  encoding?: BufferEncoding | undefined;
2009
2009
  }
2010
2010
 
2011
- function opendirSync(path: string, options?: OpenDirOptions): Dir;
2011
+ function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
2012
2012
 
2013
- function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2014
- function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2013
+ function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2014
+ function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2015
2015
 
2016
2016
  namespace opendir {
2017
- function __promisify__(path: string, options?: OpenDirOptions): Promise<Dir>;
2017
+ function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
2018
2018
  }
2019
2019
 
2020
2020
  namespace promises {
@@ -2535,7 +2535,7 @@ declare module 'fs' {
2535
2535
  */
2536
2536
  function readFile(path: PathLike | FileHandle, options?: { encoding?: string | null | undefined, flag?: string | number | undefined } | string | null): Promise<string | Buffer>;
2537
2537
 
2538
- function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
2538
+ function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
2539
2539
  }
2540
2540
 
2541
2541
  interface BigIntStats extends StatsBase<bigint> {
node v12.20/http.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare module 'http' {
2
2
  import * as stream from 'stream';
3
3
  import { URL } from 'url';
4
- import { Socket, Server as NetServer } from 'net';
4
+ import { Socket, Server as NetServer, LookupFunction } from 'net';
5
5
 
6
6
  // incoming headers will never contain number
7
7
  interface IncomingHttpHeaders {
@@ -90,6 +90,7 @@ declare module 'http' {
90
90
  setHost?: boolean | undefined;
91
91
  // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
92
92
  createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
93
+ lookup?: LookupFunction | undefined;
93
94
  }
94
95
 
95
96
  interface ServerOptions {
node v12.20/index.d.ts CHANGED
@@ -32,7 +32,6 @@
32
32
  // Thanik Bhongbhibhat <https://github.com/bhongy>
33
33
  // Marcin Kopacz <https://github.com/chyzwar>
34
34
  // Trivikram Kamat <https://github.com/trivikr>
35
- // Minh Son Nguyen <https://github.com/nguymin4>
36
35
  // Junxiao Shi <https://github.com/yoursunny>
37
36
  // Ilia Baryshnikov <https://github.com/qwelias>
38
37
  // ExE Boss <https://github.com/ExE-Boss>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.31",
3
+ "version": "12.20.35",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -165,11 +165,6 @@
165
165
  "url": "https://github.com/trivikr",
166
166
  "githubUsername": "trivikr"
167
167
  },
168
- {
169
- "name": "Minh Son Nguyen",
170
- "url": "https://github.com/nguymin4",
171
- "githubUsername": "nguymin4"
172
- },
173
168
  {
174
169
  "name": "Junxiao Shi",
175
170
  "url": "https://github.com/yoursunny",
@@ -195,6 +190,6 @@
195
190
  },
196
191
  "scripts": {},
197
192
  "dependencies": {},
198
- "typesPublisherContentHash": "e891d3fd0c244d5849ace2b202b0d965c900d8733a137e8cbb3f57c9bf735631",
193
+ "typesPublisherContentHash": "8a350c28d9f855b7bfd04ec3d5a09fefb596288ffad2096d07ea6c7445d4ec31",
199
194
  "typeScriptVersion": "3.7"
200
195
  }