@types/node 25.0.4 → 25.0.6

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 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 10 Jan 2026 00:47:09 GMT
11
+ * Last updated: Sat, 10 Jan 2026 17:34:52 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/fs/promises.d.ts CHANGED
@@ -20,7 +20,6 @@ declare module "node:fs/promises" {
20
20
  CopyOptions,
21
21
  Dir,
22
22
  Dirent,
23
- DisposableTempDir,
24
23
  EncodingOption,
25
24
  GlobOptions,
26
25
  GlobOptionsWithFileTypes,
@@ -980,6 +979,20 @@ declare module "node:fs/promises" {
980
979
  prefix: string,
981
980
  options?: ObjectEncodingOptions | BufferEncoding | null,
982
981
  ): Promise<string | NonSharedBuffer>;
982
+ interface DisposableTempDir extends AsyncDisposable {
983
+ /**
984
+ * The path of the created directory.
985
+ */
986
+ path: string;
987
+ /**
988
+ * A function which removes the created directory.
989
+ */
990
+ remove(): Promise<void>;
991
+ /**
992
+ * The same as `remove`.
993
+ */
994
+ [Symbol.asyncDispose](): Promise<void>;
995
+ }
983
996
  /**
984
997
  * The resulting Promise holds an async-disposable object whose `path` property
985
998
  * holds the created directory path. When the object is disposed, the directory
node/fs.d.ts CHANGED
@@ -2152,7 +2152,7 @@ declare module "node:fs" {
2152
2152
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2153
2153
  */
2154
2154
  function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer;
2155
- interface DisposableTempDir extends AsyncDisposable {
2155
+ interface DisposableTempDir extends Disposable {
2156
2156
  /**
2157
2157
  * The path of the created directory.
2158
2158
  */
@@ -2160,11 +2160,11 @@ declare module "node:fs" {
2160
2160
  /**
2161
2161
  * A function which removes the created directory.
2162
2162
  */
2163
- remove(): Promise<void>;
2163
+ remove(): void;
2164
2164
  /**
2165
2165
  * The same as `remove`.
2166
2166
  */
2167
- [Symbol.asyncDispose](): Promise<void>;
2167
+ [Symbol.dispose](): void;
2168
2168
  }
2169
2169
  /**
2170
2170
  * Returns a disposable object whose `path` property holds the created directory
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "25.0.4",
3
+ "version": "25.0.6",
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": "b91f0fae6862f8129d8bc33e49f0da089a54f6fc50382d013b88d205b3e15980",
153
+ "typesPublisherContentHash": "94ab17c4429a0725db5c7c76ac2cdd2b664f773ddbb00f18d7f43b0e6c78b492",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
node/process.d.ts CHANGED
@@ -594,6 +594,11 @@ declare module "node:process" {
594
594
  * @default false
595
595
  */
596
596
  reportOnUncaughtException: boolean;
597
+ /**
598
+ * If true, a diagnostic report is generated without the environment variables.
599
+ * @default false
600
+ */
601
+ excludeEnv: boolean;
597
602
  /**
598
603
  * The signal used to trigger the creation of a diagnostic report.
599
604
  * @default 'SIGUSR2'