@types/node 16.11.3 → 16.11.7

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 (https://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, 22 Oct 2021 07:01:24 GMT
11
+ * Last updated: Mon, 08 Nov 2021 21:31:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
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), [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), [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), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
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), [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), [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), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
node/fs.d.ts CHANGED
@@ -297,7 +297,7 @@ declare module 'fs' {
297
297
  * @since v0.1.93
298
298
  */
299
299
  export class ReadStream extends stream.Readable {
300
- close(): void;
300
+ close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
301
301
  /**
302
302
  * The number of bytes that have been read so far.
303
303
  * @since v6.4.0
@@ -385,7 +385,7 @@ declare module 'fs' {
385
385
  * callback that will be executed once the `writeStream`is closed.
386
386
  * @since v0.9.4
387
387
  */
388
- close(): void;
388
+ close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
389
389
  /**
390
390
  * The number of bytes written so far. Does not include data that is still queued
391
391
  * for writing.
node/http.d.ts CHANGED
@@ -42,7 +42,7 @@
42
42
  declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
- import { Socket, Server as NetServer } from 'node:net';
45
+ import { Socket, Server as NetServer, LookupFunction } from 'node:net';
46
46
  // incoming headers will never contain number
47
47
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
48
  accept?: string | undefined;
@@ -136,6 +136,7 @@ declare module 'http' {
136
136
  setHost?: boolean | undefined;
137
137
  // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
138
  createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
139
+ lookup?: LookupFunction | undefined;
139
140
  }
140
141
  interface ServerOptions {
141
142
  IncomingMessage?: typeof IncomingMessage | undefined;
node/index.d.ts CHANGED
@@ -30,7 +30,6 @@
30
30
  // Thanik Bhongbhibhat <https://github.com/bhongy>
31
31
  // Marcin Kopacz <https://github.com/chyzwar>
32
32
  // Trivikram Kamat <https://github.com/trivikr>
33
- // Minh Son Nguyen <https://github.com/nguymin4>
34
33
  // Junxiao Shi <https://github.com/yoursunny>
35
34
  // Ilia Baryshnikov <https://github.com/qwelias>
36
35
  // ExE Boss <https://github.com/ExE-Boss>
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.3",
3
+ "version": "16.11.7",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -155,11 +155,6 @@
155
155
  "url": "https://github.com/trivikr",
156
156
  "githubUsername": "trivikr"
157
157
  },
158
- {
159
- "name": "Minh Son Nguyen",
160
- "url": "https://github.com/nguymin4",
161
- "githubUsername": "nguymin4"
162
- },
163
158
  {
164
159
  "name": "Junxiao Shi",
165
160
  "url": "https://github.com/yoursunny",
@@ -225,6 +220,6 @@
225
220
  },
226
221
  "scripts": {},
227
222
  "dependencies": {},
228
- "typesPublisherContentHash": "9d15130a3c868ef264c72c669913f79635190d8195b9554f7083ab8d8ac4602c",
223
+ "typesPublisherContentHash": "f35526242fcaf9fa8ad50a3aadb0bb8c2e9aba5a332ca0523451167ec6a19f2e",
229
224
  "typeScriptVersion": "3.7"
230
225
  }
node/readline.d.ts CHANGED
@@ -236,6 +236,7 @@ declare module 'readline' {
236
236
  * @since v0.1.98
237
237
  */
238
238
  write(data: string | Buffer, key?: Key): void;
239
+ write(data: undefined | null | string | Buffer, key: Key): void;
239
240
  /**
240
241
  * Returns the real position of the cursor in relation to the input
241
242
  * prompt + string. Long input (wrapping) strings, as well as multiple