@types/node 24.6.0 → 24.6.1
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 +1 -1
- node/events.d.ts +0 -33
- node/package.json +2 -2
- node/worker_threads.d.ts +1 -1
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:
|
11
|
+
* Last updated: Tue, 30 Sep 2025 23:32:16 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/events.d.ts
CHANGED
@@ -36,39 +36,6 @@
|
|
36
36
|
*/
|
37
37
|
declare module "events" {
|
38
38
|
import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
|
39
|
-
// NOTE: This class is in the docs but is **not actually exported** by Node.
|
40
|
-
// If https://github.com/nodejs/node/issues/39903 gets resolved and Node
|
41
|
-
// actually starts exporting the class, uncomment below.
|
42
|
-
// import { EventListener, EventListenerObject } from '__dom-events';
|
43
|
-
// /** The NodeEventTarget is a Node.js-specific extension to EventTarget that emulates a subset of the EventEmitter API. */
|
44
|
-
// interface NodeEventTarget extends EventTarget {
|
45
|
-
// /**
|
46
|
-
// * Node.js-specific extension to the `EventTarget` class that emulates the equivalent `EventEmitter` API.
|
47
|
-
// * The only difference between `addListener()` and `addEventListener()` is that addListener() will return a reference to the EventTarget.
|
48
|
-
// */
|
49
|
-
// addListener(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
|
50
|
-
// /** Node.js-specific extension to the `EventTarget` class that returns an array of event `type` names for which event listeners are registered. */
|
51
|
-
// eventNames(): string[];
|
52
|
-
// /** Node.js-specific extension to the `EventTarget` class that returns the number of event listeners registered for the `type`. */
|
53
|
-
// listenerCount(type: string): number;
|
54
|
-
// /** Node.js-specific alias for `eventTarget.removeListener()`. */
|
55
|
-
// off(type: string, listener: EventListener | EventListenerObject): this;
|
56
|
-
// /** Node.js-specific alias for `eventTarget.addListener()`. */
|
57
|
-
// on(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
|
58
|
-
// /** Node.js-specific extension to the `EventTarget` class that adds a `once` listener for the given event `type`. This is equivalent to calling `on` with the `once` option set to `true`. */
|
59
|
-
// once(type: string, listener: EventListener | EventListenerObject): this;
|
60
|
-
// /**
|
61
|
-
// * Node.js-specific extension to the `EventTarget` class.
|
62
|
-
// * If `type` is specified, removes all registered listeners for `type`,
|
63
|
-
// * otherwise removes all registered listeners.
|
64
|
-
// */
|
65
|
-
// removeAllListeners(type: string): this;
|
66
|
-
// /**
|
67
|
-
// * Node.js-specific extension to the `EventTarget` class that removes the listener for the given `type`.
|
68
|
-
// * The only difference between `removeListener()` and `removeEventListener()` is that `removeListener()` will return a reference to the `EventTarget`.
|
69
|
-
// */
|
70
|
-
// removeListener(type: string, listener: EventListener | EventListenerObject): this;
|
71
|
-
// }
|
72
39
|
interface EventEmitterOptions {
|
73
40
|
/**
|
74
41
|
* Enables automatic capturing of promise rejection.
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "24.6.
|
3
|
+
"version": "24.6.1",
|
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.13.0"
|
151
151
|
},
|
152
152
|
"peerDependencies": {},
|
153
|
-
"typesPublisherContentHash": "
|
153
|
+
"typesPublisherContentHash": "cc6606dfada445f2822eef37a6d8381fff1079463a3445c82c8657b354789aaa",
|
154
154
|
"typeScriptVersion": "5.2"
|
155
155
|
}
|
node/worker_threads.d.ts
CHANGED
@@ -113,7 +113,7 @@ declare module "worker_threads" {
|
|
113
113
|
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
114
114
|
* @since v10.5.0
|
115
115
|
*/
|
116
|
-
class MessagePort
|
116
|
+
class MessagePort implements EventTarget {
|
117
117
|
/**
|
118
118
|
* Disables further sending of messages on either side of the connection.
|
119
119
|
* This method can be called when no further communication will happen over this `MessagePort`.
|