@types/node 20.8.1 → 20.8.2
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 +1 -1
- node/package.json +2 -2
- node/stream/consumers.d.ts +5 -5
- node/ts4.8/stream/consumers.d.ts +5 -5
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Mon, 02 Oct 2023
|
|
11
|
+
* Last updated: Mon, 02 Oct 2023 21:06:31 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.8.
|
|
3
|
+
"version": "20.8.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "6fe03076f21a2582000286d4d4d3451cf25369d7fcdb3e021c336aa70cfc3f68",
|
|
231
231
|
"typeScriptVersion": "4.5"
|
|
232
232
|
}
|
node/stream/consumers.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare module "stream/consumers" {
|
|
2
2
|
import { Blob as NodeBlob } from "node:buffer";
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
|
-
function buffer(stream: NodeJS.ReadableStream | Readable |
|
|
5
|
-
function text(stream: NodeJS.ReadableStream | Readable |
|
|
6
|
-
function arrayBuffer(stream: NodeJS.ReadableStream | Readable |
|
|
7
|
-
function blob(stream: NodeJS.ReadableStream | Readable |
|
|
8
|
-
function json(stream: NodeJS.ReadableStream | Readable |
|
|
4
|
+
function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
|
|
5
|
+
function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
|
|
6
|
+
function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
7
|
+
function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
|
|
8
|
+
function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
|
|
9
9
|
}
|
|
10
10
|
declare module "node:stream/consumers" {
|
|
11
11
|
export * from "stream/consumers";
|
node/ts4.8/stream/consumers.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare module "stream/consumers" {
|
|
2
2
|
import { Blob as NodeBlob } from "node:buffer";
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
|
-
function buffer(stream: NodeJS.ReadableStream | Readable |
|
|
5
|
-
function text(stream: NodeJS.ReadableStream | Readable |
|
|
6
|
-
function arrayBuffer(stream: NodeJS.ReadableStream | Readable |
|
|
7
|
-
function blob(stream: NodeJS.ReadableStream | Readable |
|
|
8
|
-
function json(stream: NodeJS.ReadableStream | Readable |
|
|
4
|
+
function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
|
|
5
|
+
function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
|
|
6
|
+
function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
7
|
+
function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
|
|
8
|
+
function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
|
|
9
9
|
}
|
|
10
10
|
declare module "node:stream/consumers" {
|
|
11
11
|
export * from "stream/consumers";
|