@types/node 14.17.29 → 14.17.33

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 v14.17/README.md CHANGED
@@ -8,7 +8,7 @@ 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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 22 Oct 2021 19:01:20 GMT
11
+ * Last updated: Mon, 08 Nov 2021 21:31:29 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -264,7 +264,6 @@ declare module 'child_process' {
264
264
 
265
265
  interface ExecOptions extends CommonOptions {
266
266
  shell?: string | undefined;
267
- signal?: AbortSignal | undefined;
268
267
  maxBuffer?: number | undefined;
269
268
  killSignal?: NodeJS.Signals | number | undefined;
270
269
  }
node v14.17/fs.d.ts CHANGED
@@ -143,7 +143,7 @@ declare module 'fs' {
143
143
  }
144
144
 
145
145
  export class ReadStream extends stream.Readable {
146
- close(): void;
146
+ close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
147
147
  bytesRead: number;
148
148
  path: string | Buffer;
149
149
  pending: boolean;
@@ -211,7 +211,7 @@ declare module 'fs' {
211
211
  }
212
212
 
213
213
  export class WriteStream extends stream.Writable {
214
- close(): void;
214
+ close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
215
215
  bytesWritten: number;
216
216
  path: string | Buffer;
217
217
  pending: boolean;
node v14.17/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 extends NodeJS.Dict<string | string[]> {
@@ -99,6 +99,7 @@ declare module 'http' {
99
99
  setHost?: boolean | undefined;
100
100
  // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
101
101
  createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
102
+ lookup?: LookupFunction | undefined;
102
103
  }
103
104
 
104
105
  interface ServerOptions {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.29",
3
+ "version": "14.17.33",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "8e3443de8d935d86d44058de34732d33522229b79c74b6c0db6b9cbc5afc0a94",
218
+ "typesPublisherContentHash": "39926b170c7654bc55a386459ed7160ab59cfabf11681c9b36c337d519824d3d",
219
219
  "typeScriptVersion": "3.7"
220
220
  }
@@ -45,6 +45,7 @@ declare module 'readline' {
45
45
  resume(): this;
46
46
  close(): void;
47
47
  write(data: string | Buffer, key?: Key): void;
48
+ write(data: undefined | null | string | Buffer, key: Key): void;
48
49
 
49
50
  /**
50
51
  * Returns the real position of the cursor in relation to the input