@types/node
Advanced tools
Comparing version 22.2.0 to 22.3.0
@@ -10,2 +10,3 @@ export {}; // Make this a module | ||
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; | ||
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").MessageEvent; | ||
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} | ||
@@ -17,2 +18,3 @@ : import("undici-types").RequestInit; | ||
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").WebSocket; | ||
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").EventSource; | ||
// #endregion Fetch and friends | ||
@@ -409,2 +411,9 @@ | ||
interface MessageEvent extends _MessageEvent {} | ||
var MessageEvent: typeof globalThis extends { | ||
onmessage: any; | ||
MessageEvent: infer T; | ||
} ? T | ||
: typeof import("undici-types").MessageEvent; | ||
interface File extends _File {} | ||
@@ -420,2 +429,9 @@ var File: typeof globalThis extends { | ||
: typeof import("undici-types").WebSocket; | ||
interface EventSource extends _EventSource {} | ||
/** | ||
* Only available through the [--experimental-eventsource](https://nodejs.org/api/cli.html#--experimental-eventsource) flag. | ||
*/ | ||
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T | ||
: typeof import("undici-types").EventSource; | ||
} |
{ | ||
"name": "@types/node", | ||
"version": "22.2.0", | ||
"version": "22.3.0", | ||
"description": "TypeScript definitions for node", | ||
@@ -213,6 +213,6 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
"dependencies": { | ||
"undici-types": "~6.13.0" | ||
"undici-types": "~6.18.2" | ||
}, | ||
"typesPublisherContentHash": "e8a1feecc621a4e4c40517dba1262b6a77dcb9cdd874f74c76cb391931926c7c", | ||
"typesPublisherContentHash": "620b8a407d4118e9931ab6e01ed7af87ce13d63daa46a4098fca6d43eaf853db", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 09 Aug 2024 18:08:59 GMT | ||
* Last updated: Wed, 14 Aug 2024 07:35:57 GMT | ||
* Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2105812
47251
+ Addedundici-types@6.18.2(transitive)
- Removedundici-types@6.13.0(transitive)
Updatedundici-types@~6.18.2