@types/node 12.20.39 → 12.20.40
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 +3 -3
- node v12.20/http.d.ts +1 -1
- node v12.20/http2.d.ts +3 -3
- node v12.20/net.d.ts +3 -3
- node v12.20/package.json +2 -2
- node v12.20/stream.d.ts +8 -8
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: Sat, 01 Jan 2022 14:01:37 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 { }
|
node v12.20/http.d.ts
CHANGED
node v12.20/http2.d.ts
CHANGED
|
@@ -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.40",
|
|
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": "
|
|
193
|
+
"typesPublisherContentHash": "259342af0a16da2ddc84776fdcc202632da70497f1778f61386c482e0cb0a52d",
|
|
194
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
|
}
|