@types/node 12.20.37 → 12.20.41
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/globals.d.ts +4 -4
- node v12.20/http.d.ts +1 -1
- node v12.20/http2.d.ts +4 -4
- node v12.20/net.d.ts +3 -3
- node v12.20/package.json +3 -3
- node v12.20/stream.d.ts +8 -8
- node v12.20/tls.d.ts +2 -1
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: Tue, 04 Jan 2022 18:31:35 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/globals.d.ts
CHANGED
|
@@ -673,9 +673,9 @@ declare namespace NodeJS {
|
|
|
673
673
|
writable: boolean;
|
|
674
674
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
675
675
|
write(str: string, encoding?: string, cb?: (err?: Error | null) => void): boolean;
|
|
676
|
-
end(cb?: () => void):
|
|
677
|
-
end(data: string | Uint8Array, cb?: () => void):
|
|
678
|
-
end(str: string, encoding?: string, cb?: () => void):
|
|
676
|
+
end(cb?: () => void): this;
|
|
677
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
678
|
+
end(str: string, encoding?: string, cb?: () => void): this;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
|
@@ -802,7 +802,7 @@ declare namespace NodeJS {
|
|
|
802
802
|
/**
|
|
803
803
|
* If true, a diagnostic report is generated when the process
|
|
804
804
|
* receives the signal specified by process.report.signal.
|
|
805
|
-
* @
|
|
805
|
+
* @default false
|
|
806
806
|
*/
|
|
807
807
|
reportOnSignal: boolean;
|
|
808
808
|
|
node v12.20/http.d.ts
CHANGED
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;
|
|
@@ -654,9 +654,9 @@ declare module 'http2' {
|
|
|
654
654
|
statusCode: number;
|
|
655
655
|
statusMessage: '';
|
|
656
656
|
addTrailers(trailers: OutgoingHttpHeaders): void;
|
|
657
|
-
end(callback?: () => void):
|
|
658
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
659
|
-
end(data: string | Uint8Array, encoding: string, callback?: () => void):
|
|
657
|
+
end(callback?: () => void): this;
|
|
658
|
+
end(data: string | Uint8Array, callback?: () => void): this;
|
|
659
|
+
end(data: string | Uint8Array, encoding: string, callback?: () => void): this;
|
|
660
660
|
getHeader(name: string): string;
|
|
661
661
|
getHeaderNames(): string[];
|
|
662
662
|
getHeaders(): OutgoingHttpHeaders;
|
node v12.20/net.d.ts
CHANGED
|
@@ -91,9 +91,9 @@ declare module 'net' {
|
|
|
91
91
|
readonly remotePort?: number | undefined;
|
|
92
92
|
|
|
93
93
|
// Extended base methods
|
|
94
|
-
end(cb?: () => void):
|
|
95
|
-
end(buffer: Uint8Array | string, cb?: () => void):
|
|
96
|
-
end(str: Uint8Array | string, encoding?: string, cb?: () => void):
|
|
94
|
+
end(cb?: () => void): this;
|
|
95
|
+
end(buffer: Uint8Array | string, cb?: () => void): this;
|
|
96
|
+
end(str: Uint8Array | string, encoding?: string, cb?: () => void): this;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* events.EventEmitter
|
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.41",
|
|
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": "2aff218856e248b35fcc686e4c3a35383af94dc1886cdd1557d7356553d9531a",
|
|
194
|
+
"typeScriptVersion": "3.8"
|
|
195
195
|
}
|
node v12.20/stream.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare module 'stream' {
|
|
|
43
43
|
wrap(oldStream: NodeJS.ReadableStream): this;
|
|
44
44
|
push(chunk: any, encoding?: string): boolean;
|
|
45
45
|
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
46
|
-
destroy(error?: Error):
|
|
46
|
+
destroy(error?: Error): this;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Event emitter
|
|
@@ -135,12 +135,12 @@ declare module 'stream' {
|
|
|
135
135
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
136
136
|
write(chunk: any, encoding: string, cb?: (error: Error | null | undefined) => void): boolean;
|
|
137
137
|
setDefaultEncoding(encoding: string): this;
|
|
138
|
-
end(cb?: () => void):
|
|
139
|
-
end(chunk: any, cb?: () => void):
|
|
140
|
-
end(chunk: any, encoding: string, cb?: () => void):
|
|
138
|
+
end(cb?: () => void): this;
|
|
139
|
+
end(chunk: any, cb?: () => void): this;
|
|
140
|
+
end(chunk: any, encoding: string, cb?: () => void): this;
|
|
141
141
|
cork(): void;
|
|
142
142
|
uncork(): void;
|
|
143
|
-
destroy(error?: Error):
|
|
143
|
+
destroy(error?: Error): this;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Event emitter
|
|
@@ -239,9 +239,9 @@ declare module 'stream' {
|
|
|
239
239
|
write(chunk: any, encoding?: string, cb?: (error: Error | null | undefined) => void): boolean;
|
|
240
240
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
241
241
|
setDefaultEncoding(encoding: string): this;
|
|
242
|
-
end(cb?: () => void):
|
|
243
|
-
end(chunk: any, cb?: () => void):
|
|
244
|
-
end(chunk: any, encoding?: string, cb?: () => void):
|
|
242
|
+
end(cb?: () => void): this;
|
|
243
|
+
end(chunk: any, cb?: () => void): this;
|
|
244
|
+
end(chunk: any, encoding?: string, cb?: () => void): this;
|
|
245
245
|
cork(): void;
|
|
246
246
|
uncork(): void;
|
|
247
247
|
}
|
node v12.20/tls.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare module 'tls' {
|
|
2
2
|
import * as net from 'net';
|
|
3
|
+
import * as stream from 'stream';
|
|
3
4
|
|
|
4
5
|
const CLIENT_RENEG_LIMIT: number;
|
|
5
6
|
const CLIENT_RENEG_WINDOW: number;
|
|
@@ -394,7 +395,7 @@ declare module 'tls' {
|
|
|
394
395
|
host?: string | undefined;
|
|
395
396
|
port?: number | undefined;
|
|
396
397
|
path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
|
|
397
|
-
socket?:
|
|
398
|
+
socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
|
|
398
399
|
checkServerIdentity?: typeof checkServerIdentity | undefined;
|
|
399
400
|
servername?: string | undefined; // SNI TLS Extension
|
|
400
401
|
session?: Buffer | undefined;
|