@types/node 24.10.6 → 24.10.8
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 v24.10/README.md +1 -1
- node v24.10/fs/promises.d.ts +14 -1
- node v24.10/fs.d.ts +3 -3
- node v24.10/package.json +2 -2
- node v24.10/process.d.ts +11 -2
node v24.10/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/v24.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 13 Jan 2026 15:03:39 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v24.10/fs/promises.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ declare module "fs/promises" {
|
|
|
21
21
|
CopyOptions,
|
|
22
22
|
Dir,
|
|
23
23
|
Dirent,
|
|
24
|
-
DisposableTempDir,
|
|
25
24
|
EncodingOption,
|
|
26
25
|
GlobOptions,
|
|
27
26
|
GlobOptionsWithFileTypes,
|
|
@@ -981,6 +980,20 @@ declare module "fs/promises" {
|
|
|
981
980
|
prefix: string,
|
|
982
981
|
options?: ObjectEncodingOptions | BufferEncoding | null,
|
|
983
982
|
): Promise<string | NonSharedBuffer>;
|
|
983
|
+
interface DisposableTempDir extends AsyncDisposable {
|
|
984
|
+
/**
|
|
985
|
+
* The path of the created directory.
|
|
986
|
+
*/
|
|
987
|
+
path: string;
|
|
988
|
+
/**
|
|
989
|
+
* A function which removes the created directory.
|
|
990
|
+
*/
|
|
991
|
+
remove(): Promise<void>;
|
|
992
|
+
/**
|
|
993
|
+
* The same as `remove`.
|
|
994
|
+
*/
|
|
995
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
996
|
+
}
|
|
984
997
|
/**
|
|
985
998
|
* The resulting Promise holds an async-disposable object whose `path` property
|
|
986
999
|
* holds the created directory path. When the object is disposed, the directory
|
node v24.10/fs.d.ts
CHANGED
|
@@ -2193,7 +2193,7 @@ declare module "fs" {
|
|
|
2193
2193
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
2194
2194
|
*/
|
|
2195
2195
|
export function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer;
|
|
2196
|
-
export interface DisposableTempDir extends
|
|
2196
|
+
export interface DisposableTempDir extends Disposable {
|
|
2197
2197
|
/**
|
|
2198
2198
|
* The path of the created directory.
|
|
2199
2199
|
*/
|
|
@@ -2201,11 +2201,11 @@ declare module "fs" {
|
|
|
2201
2201
|
/**
|
|
2202
2202
|
* A function which removes the created directory.
|
|
2203
2203
|
*/
|
|
2204
|
-
remove():
|
|
2204
|
+
remove(): void;
|
|
2205
2205
|
/**
|
|
2206
2206
|
* The same as `remove`.
|
|
2207
2207
|
*/
|
|
2208
|
-
[Symbol.
|
|
2208
|
+
[Symbol.dispose](): void;
|
|
2209
2209
|
}
|
|
2210
2210
|
/**
|
|
2211
2211
|
* Returns a disposable object whose `path` property holds the created directory
|
node v24.10/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "24.10.
|
|
3
|
+
"version": "24.10.8",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,6 +150,6 @@
|
|
|
150
150
|
"undici-types": "~7.16.0"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {},
|
|
153
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "56fd83fda971b33504b67e5c98596ca7c5d4a28d3b7ff29522643cc4f1db7eea",
|
|
154
154
|
"typeScriptVersion": "5.2"
|
|
155
155
|
}
|
node v24.10/process.d.ts
CHANGED
|
@@ -1786,8 +1786,17 @@ declare module "process" {
|
|
|
1786
1786
|
*/
|
|
1787
1787
|
send?(
|
|
1788
1788
|
message: any,
|
|
1789
|
-
|
|
1790
|
-
|
|
1789
|
+
callback?: (error: Error | null) => void,
|
|
1790
|
+
): boolean;
|
|
1791
|
+
send?(
|
|
1792
|
+
message: any,
|
|
1793
|
+
sendHandle: SendHandle,
|
|
1794
|
+
callback?: (error: Error | null) => void,
|
|
1795
|
+
): boolean;
|
|
1796
|
+
send?(
|
|
1797
|
+
message: any,
|
|
1798
|
+
sendHandle: SendHandle,
|
|
1799
|
+
options: MessageOptions,
|
|
1791
1800
|
callback?: (error: Error | null) => void,
|
|
1792
1801
|
): boolean;
|
|
1793
1802
|
/**
|