@types/node 20.8.4 → 20.8.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.js (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: Mon, 09 Oct 2023 17:35:36 GMT
11
+ * Last updated: Fri, 13 Oct 2023 22:05:45 GMT
12
12
  * Dependencies: [@types/undici-types](https://npmjs.com/package/@types/undici-types)
13
13
  * Global values: `AbortController`, `AbortSignal`, `FormData`, `Headers`, `Request`, `Response`, `__dirname`, `__filename`, `console`, `exports`, `fetch`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/buffer.d.ts CHANGED
@@ -223,7 +223,7 @@ declare module "buffer" {
223
223
  import { Blob as NodeBlob } from "buffer";
224
224
  // This conditional type will be the existing global Blob in a browser, or
225
225
  // the copy below in a Node environment.
226
- type __Blob = typeof globalThis extends { onmessage: any; Blob: infer T } ? T : NodeBlob;
226
+ type __Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : NodeBlob;
227
227
  global {
228
228
  namespace NodeJS {
229
229
  export { BufferEncoding };
node/module.d.ts CHANGED
@@ -267,22 +267,26 @@ declare module "module" {
267
267
  * Provides a module-relative resolution function scoped to each module, returning
268
268
  * the URL string.
269
269
  *
270
- * @param specified The module specifier to resolve relative to the current module.
270
+ * @since v20.6.0
271
+ *
272
+ * @param specifier The module specifier to resolve relative to the current module.
271
273
  * @returns The absolute (`file:`) URL string for the resolved module.
272
274
  */
273
- resolve(specified: string): string;
275
+ resolve(specifier: string): string;
274
276
  /**
275
- * This feature is only available with the `--experimental-import-meta-resolve`
277
+ * This `parent` parameter is only used when the `--experimental-import-meta-resolve`
276
278
  * command flag enabled.
277
279
  *
278
280
  * Provides a module-relative resolution function scoped to each module, returning
279
281
  * the URL string.
280
282
  *
281
- * @param specified The module specifier to resolve relative to `parent`.
283
+ * @since v20.6.0
284
+ *
285
+ * @param specifier The module specifier to resolve relative to `parent`.
282
286
  * @param parent The absolute parent module URL to resolve from.
283
287
  * @returns The absolute (`file:`) URL string for the resolved module.
284
288
  */
285
- resolve(specified: string, parent: string | URL): string;
289
+ resolve(specifier: string, parent: string | URL): string;
286
290
  }
287
291
  }
288
292
  export = Module;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.8.4",
3
+ "version": "20.8.6",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -229,6 +229,6 @@
229
229
  "dependencies": {
230
230
  "undici-types": "~5.25.1"
231
231
  },
232
- "typesPublisherContentHash": "2838dc399a85e9b85a3a405ba23ca1871738adf3d0908db1877a2e5c39a9f7a6",
232
+ "typesPublisherContentHash": "a80e2c3721390a74f89db6139948567951eca03453d5936cab55aa8b51134260",
233
233
  "typeScriptVersion": "4.5"
234
234
  }
node/ts4.8/buffer.d.ts CHANGED
@@ -223,7 +223,7 @@ declare module "buffer" {
223
223
  import { Blob as NodeBlob } from "buffer";
224
224
  // This conditional type will be the existing global Blob in a browser, or
225
225
  // the copy below in a Node environment.
226
- type __Blob = typeof globalThis extends { onmessage: any; Blob: infer T } ? T : NodeBlob;
226
+ type __Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : NodeBlob;
227
227
  global {
228
228
  namespace NodeJS {
229
229
  export { BufferEncoding };
node/ts4.8/module.d.ts CHANGED
@@ -267,22 +267,26 @@ declare module "module" {
267
267
  * Provides a module-relative resolution function scoped to each module, returning
268
268
  * the URL string.
269
269
  *
270
- * @param specified The module specifier to resolve relative to the current module.
270
+ * @since v20.6.0
271
+ *
272
+ * @param specifier The module specifier to resolve relative to the current module.
271
273
  * @returns The absolute (`file:`) URL string for the resolved module.
272
274
  */
273
- resolve(specified: string): string;
275
+ resolve(specifier: string): string;
274
276
  /**
275
- * This feature is only available with the `--experimental-import-meta-resolve`
277
+ * This `parent` parameter is only used when the `--experimental-import-meta-resolve`
276
278
  * command flag enabled.
277
279
  *
278
280
  * Provides a module-relative resolution function scoped to each module, returning
279
281
  * the URL string.
280
282
  *
281
- * @param specified The module specifier to resolve relative to `parent`.
283
+ * @since v20.6.0
284
+ *
285
+ * @param specifier The module specifier to resolve relative to `parent`.
282
286
  * @param parent The absolute parent module URL to resolve from.
283
287
  * @returns The absolute (`file:`) URL string for the resolved module.
284
288
  */
285
- resolve(specified: string, parent: string | URL): string;
289
+ resolve(specifier: string, parent: string | URL): string;
286
290
  }
287
291
  }
288
292
  export = Module;