@types/node 18.19.120 → 18.19.122

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 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: Sat, 19 Jul 2025 00:47:11 GMT
11
+ * Last updated: Fri, 08 Aug 2025 16:38:49 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v18.19/module.d.ts CHANGED
@@ -316,15 +316,10 @@ declare module "module" {
316
316
  function runMain(main?: string): void;
317
317
  function wrap(code: string): string;
318
318
  }
319
- type ImportMetaDOMCompat = typeof globalThis extends { onmessage: any } ? {
320
- resolve(specifier: string): string;
321
- }
322
- : {
323
- resolve?(specifier: string, parent?: string | URL): Promise<string>;
324
- };
325
319
  global {
326
- interface ImportMeta extends ImportMetaDOMCompat {
320
+ interface ImportMeta {
327
321
  url: string;
322
+ resolve(specifier: string, parent?: string | URL): string;
328
323
  }
329
324
  namespace NodeJS {
330
325
  interface Module {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.120",
3
+ "version": "18.19.122",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -140,6 +140,6 @@
140
140
  "undici-types": "~5.26.4"
141
141
  },
142
142
  "peerDependencies": {},
143
- "typesPublisherContentHash": "8cc997795fee214a459e986693a8b87752e166e2bcf38a227e4f9569eb15e0d5",
144
- "typeScriptVersion": "5.1"
143
+ "typesPublisherContentHash": "aa0fbc187c55c67fe52a732b3e4c2dc8c88a7d12eac33b3d9c6b750f09b09a93",
144
+ "typeScriptVersion": "5.2"
145
145
  }
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
6
6
  : import("stream/web").CountQueuingStrategy;
7
7
  type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
8
8
  : import("stream/web").DecompressionStream;
9
+ type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
10
+ : import("stream/web").QueuingStrategy<T>;
9
11
  type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
10
12
  : import("stream/web").ReadableByteStreamController;
11
13
  type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
@@ -457,6 +459,8 @@ declare module "stream/web" {
457
459
  }
458
460
  : typeof import("stream/web").DecompressionStream;
459
461
 
462
+ interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
463
+
460
464
  interface ReadableByteStreamController extends _ReadableByteStreamController {}
461
465
  var ReadableByteStreamController: typeof globalThis extends
462
466
  { onmessage: any; ReadableByteStreamController: infer T } ? T