@types/node 12.20.34 → 12.20.38
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 +1 -1
- node v12.20/fs.d.ts +2 -2
- node v12.20/http.d.ts +2 -1
- node v12.20/http2.d.ts +1 -1
- node v12.20/package.json +3 -3
- node v12.20/readline.d.ts +1 -0
node v12.20/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 20 Dec 2021 23:01:24 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
|
|
node v12.20/fs.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ declare module 'fs' {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
class ReadStream extends stream.Readable {
|
|
134
|
-
close(): void;
|
|
134
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
135
135
|
bytesRead: number;
|
|
136
136
|
path: string | Buffer;
|
|
137
137
|
|
|
@@ -162,7 +162,7 @@ declare module 'fs' {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
class WriteStream extends stream.Writable {
|
|
165
|
-
close(): void;
|
|
165
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
166
166
|
bytesWritten: number;
|
|
167
167
|
path: string | Buffer;
|
|
168
168
|
|
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/http2.d.ts
CHANGED
|
@@ -588,7 +588,7 @@ declare module 'http2' {
|
|
|
588
588
|
readonly socket: net.Socket | tls.TLSSocket;
|
|
589
589
|
readonly stream: ServerHttp2Stream;
|
|
590
590
|
readonly trailers: IncomingHttpHeaders;
|
|
591
|
-
|
|
591
|
+
url: string;
|
|
592
592
|
|
|
593
593
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
594
594
|
read(size?: number): Buffer | string | null;
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.38",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,6 +190,6 @@
|
|
|
190
190
|
},
|
|
191
191
|
"scripts": {},
|
|
192
192
|
"dependencies": {},
|
|
193
|
-
"typesPublisherContentHash": "
|
|
194
|
-
"typeScriptVersion": "3.
|
|
193
|
+
"typesPublisherContentHash": "54f4230b3aa8a3cfe9d51e6d9028bd11be22c2320ff66a76863b034a418adb3a",
|
|
194
|
+
"typeScriptVersion": "3.8"
|
|
195
195
|
}
|