@types/node 18.19.81 → 18.19.83
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.19/README.md +1 -1
- node v18.19/fs.d.ts +2 -2
- node v18.19/package.json +2 -2
- node v18.19/stream/consumers.d.ts +32 -6
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (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:
|
|
11
|
+
* Last updated: Mon, 24 Mar 2025 11:02:21 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/fs.d.ts
CHANGED
|
@@ -4023,7 +4023,7 @@ declare module "fs" {
|
|
|
4023
4023
|
export function writev(
|
|
4024
4024
|
fd: number,
|
|
4025
4025
|
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4026
|
-
position: number,
|
|
4026
|
+
position: number | null,
|
|
4027
4027
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4028
4028
|
): void;
|
|
4029
4029
|
export interface WriteVResult {
|
|
@@ -4066,7 +4066,7 @@ declare module "fs" {
|
|
|
4066
4066
|
export function readv(
|
|
4067
4067
|
fd: number,
|
|
4068
4068
|
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4069
|
-
position: number,
|
|
4069
|
+
position: number | null,
|
|
4070
4070
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4071
4071
|
): void;
|
|
4072
4072
|
export interface ReadVResult {
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.83",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
"undici-types": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "d72ab32bc4e0c437229783b432949c6257b3d9108125eee475bf098f0cbbf447",
|
|
224
224
|
"typeScriptVersion": "5.0"
|
|
225
225
|
}
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The utility consumer functions provide common options for consuming
|
|
3
|
+
* streams.
|
|
4
|
+
* @since v16.7.0
|
|
5
|
+
*/
|
|
1
6
|
declare module "stream/consumers" {
|
|
2
7
|
import { Blob as NodeBlob } from "node:buffer";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function
|
|
8
|
+
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
9
|
+
/**
|
|
10
|
+
* @since v16.7.0
|
|
11
|
+
* @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
|
|
12
|
+
*/
|
|
13
|
+
function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
14
|
+
/**
|
|
15
|
+
* @since v16.7.0
|
|
16
|
+
* @returns Fulfills with a `Blob` containing the full contents of the stream.
|
|
17
|
+
*/
|
|
18
|
+
function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
|
|
19
|
+
/**
|
|
20
|
+
* @since v16.7.0
|
|
21
|
+
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
|
+
*/
|
|
23
|
+
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Buffer>;
|
|
24
|
+
/**
|
|
25
|
+
* @since v16.7.0
|
|
26
|
+
* @returns Fulfills with the contents of the stream parsed as a
|
|
27
|
+
* UTF-8 encoded string that is then passed through `JSON.parse()`.
|
|
28
|
+
*/
|
|
29
|
+
function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* @since v16.7.0
|
|
32
|
+
* @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
|
|
33
|
+
*/
|
|
34
|
+
function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
|
|
9
35
|
}
|
|
10
36
|
declare module "node:stream/consumers" {
|
|
11
37
|
export * from "stream/consumers";
|