@types/node 18.19.90 → 18.19.92
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/buffer.buffer.d.ts +2 -0
- node v18.19/buffer.d.ts +1 -1
- node v18.19/fs.d.ts +7 -7
- node v18.19/package.json +2 -2
- node v18.19/stream/web.d.ts +3 -3
- node v18.19/ts5.6/buffer.buffer.d.ts +2 -0
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: Mon, 05 May 2025
|
|
11
|
+
* Last updated: Mon, 05 May 2025 21:33:58 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/buffer.buffer.d.ts
CHANGED
|
@@ -445,6 +445,8 @@ declare module "buffer" {
|
|
|
445
445
|
*/
|
|
446
446
|
subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
|
|
447
447
|
}
|
|
448
|
+
type NonSharedBuffer = Buffer<ArrayBuffer>;
|
|
449
|
+
type AllowSharedBuffer = Buffer<ArrayBufferLike>;
|
|
448
450
|
}
|
|
449
451
|
/** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
|
|
450
452
|
var SlowBuffer: {
|
node v18.19/buffer.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ declare module "buffer" {
|
|
|
112
112
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
113
113
|
*/
|
|
114
114
|
export function resolveObjectURL(id: string): Blob | undefined;
|
|
115
|
-
export { Buffer };
|
|
115
|
+
export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
|
|
116
116
|
/**
|
|
117
117
|
* @experimental
|
|
118
118
|
*/
|
node v18.19/fs.d.ts
CHANGED
|
@@ -2695,7 +2695,7 @@ declare module "fs" {
|
|
|
2695
2695
|
} & Abortable)
|
|
2696
2696
|
| undefined
|
|
2697
2697
|
| null,
|
|
2698
|
-
callback: (err: NodeJS.ErrnoException | null, data:
|
|
2698
|
+
callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void,
|
|
2699
2699
|
): void;
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2730,7 +2730,7 @@ declare module "fs" {
|
|
|
2730
2730
|
| BufferEncoding
|
|
2731
2731
|
| undefined
|
|
2732
2732
|
| null,
|
|
2733
|
-
callback: (err: NodeJS.ErrnoException | null, data: string |
|
|
2733
|
+
callback: (err: NodeJS.ErrnoException | null, data: string | NonSharedBuffer) => void,
|
|
2734
2734
|
): void;
|
|
2735
2735
|
/**
|
|
2736
2736
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -2739,7 +2739,7 @@ declare module "fs" {
|
|
|
2739
2739
|
*/
|
|
2740
2740
|
export function readFile(
|
|
2741
2741
|
path: PathOrFileDescriptor,
|
|
2742
|
-
callback: (err: NodeJS.ErrnoException | null, data:
|
|
2742
|
+
callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void,
|
|
2743
2743
|
): void;
|
|
2744
2744
|
export namespace readFile {
|
|
2745
2745
|
/**
|
|
@@ -2755,7 +2755,7 @@ declare module "fs" {
|
|
|
2755
2755
|
encoding?: null | undefined;
|
|
2756
2756
|
flag?: string | undefined;
|
|
2757
2757
|
} | null,
|
|
2758
|
-
): Promise<
|
|
2758
|
+
): Promise<NonSharedBuffer>;
|
|
2759
2759
|
/**
|
|
2760
2760
|
* Asynchronously reads the entire contents of a file.
|
|
2761
2761
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -2789,7 +2789,7 @@ declare module "fs" {
|
|
|
2789
2789
|
})
|
|
2790
2790
|
| BufferEncoding
|
|
2791
2791
|
| null,
|
|
2792
|
-
): Promise<string |
|
|
2792
|
+
): Promise<string | NonSharedBuffer>;
|
|
2793
2793
|
}
|
|
2794
2794
|
/**
|
|
2795
2795
|
* Returns the contents of the `path`.
|
|
@@ -2821,7 +2821,7 @@ declare module "fs" {
|
|
|
2821
2821
|
encoding?: null | undefined;
|
|
2822
2822
|
flag?: string | undefined;
|
|
2823
2823
|
} | null,
|
|
2824
|
-
):
|
|
2824
|
+
): NonSharedBuffer;
|
|
2825
2825
|
/**
|
|
2826
2826
|
* Synchronously reads the entire contents of a file.
|
|
2827
2827
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -2853,7 +2853,7 @@ declare module "fs" {
|
|
|
2853
2853
|
})
|
|
2854
2854
|
| BufferEncoding
|
|
2855
2855
|
| null,
|
|
2856
|
-
): string |
|
|
2856
|
+
): string | NonSharedBuffer;
|
|
2857
2857
|
export type WriteFileOptions =
|
|
2858
2858
|
| (
|
|
2859
2859
|
& ObjectEncodingOptions
|
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.92",
|
|
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": "ac804d6fc76633acbe050d4cee6afb333118333c08548d5e6beb766a881cee8d",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|
node v18.19/stream/web.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ declare module "stream/web" {
|
|
|
97
97
|
signal?: AbortSignal;
|
|
98
98
|
}
|
|
99
99
|
interface ReadableStreamGenericReader {
|
|
100
|
-
readonly closed: Promise<
|
|
100
|
+
readonly closed: Promise<void>;
|
|
101
101
|
cancel(reason?: any): Promise<void>;
|
|
102
102
|
}
|
|
103
103
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
@@ -301,9 +301,9 @@ declare module "stream/web" {
|
|
|
301
301
|
* sink.
|
|
302
302
|
*/
|
|
303
303
|
interface WritableStreamDefaultWriter<W = any> {
|
|
304
|
-
readonly closed: Promise<
|
|
304
|
+
readonly closed: Promise<void>;
|
|
305
305
|
readonly desiredSize: number | null;
|
|
306
|
-
readonly ready: Promise<
|
|
306
|
+
readonly ready: Promise<void>;
|
|
307
307
|
abort(reason?: any): Promise<void>;
|
|
308
308
|
close(): Promise<void>;
|
|
309
309
|
releaseLock(): void;
|
|
@@ -443,6 +443,8 @@ declare module "buffer" {
|
|
|
443
443
|
*/
|
|
444
444
|
subarray(start?: number, end?: number): Buffer;
|
|
445
445
|
}
|
|
446
|
+
type NonSharedBuffer = Buffer;
|
|
447
|
+
type AllowSharedBuffer = Buffer;
|
|
446
448
|
}
|
|
447
449
|
/** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
|
|
448
450
|
var SlowBuffer: {
|