@types/node 18.18.2 → 18.18.3
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 v18.18/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/v18.
|
|
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 v18.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.18.
|
|
3
|
+
"version": "18.18.3",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "d60e80ed98f595f8a6626083a9240fcdfed583fe1ed79830080b4c9165be51cc",
|
|
236
236
|
"typeScriptVersion": "4.5"
|
|
237
237
|
}
|
|
@@ -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";
|
|
@@ -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";
|