@types/node 20.12.1 → 20.12.3
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 +2 -6
- node/inspector.d.ts +1 -2
- node/package.json +2 -2
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, 02 Apr 2024 20:35:39 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/events.d.ts
CHANGED
|
@@ -75,10 +75,6 @@ declare module "events" {
|
|
|
75
75
|
*/
|
|
76
76
|
captureRejections?: boolean | undefined;
|
|
77
77
|
}
|
|
78
|
-
// Any EventTarget with a Node-style `once` function
|
|
79
|
-
interface _NodeEventTarget {
|
|
80
|
-
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
81
|
-
}
|
|
82
78
|
// Any EventTarget with a DOM-style `addEventListener`
|
|
83
79
|
interface _DOMEventTarget {
|
|
84
80
|
addEventListener(
|
|
@@ -208,7 +204,7 @@ declare module "events" {
|
|
|
208
204
|
* @since v11.13.0, v10.16.0
|
|
209
205
|
*/
|
|
210
206
|
static once(
|
|
211
|
-
emitter:
|
|
207
|
+
emitter: NodeJS.EventEmitter,
|
|
212
208
|
eventName: string | symbol,
|
|
213
209
|
options?: StaticEventEmitterOptions,
|
|
214
210
|
): Promise<any[]>;
|
|
@@ -720,7 +716,7 @@ declare module "events" {
|
|
|
720
716
|
* Returns a reference to the `EventEmitter`, so that calls can be chained.
|
|
721
717
|
* @since v0.1.26
|
|
722
718
|
*/
|
|
723
|
-
removeAllListeners(
|
|
719
|
+
removeAllListeners(eventName?: Key<unknown, T>): this;
|
|
724
720
|
/**
|
|
725
721
|
* By default `EventEmitter`s will print a warning if more than `10` listeners are
|
|
726
722
|
* added for a particular event. This is a useful default that helps finding
|
node/inspector.d.ts
CHANGED
|
@@ -2742,6 +2742,5 @@ declare module 'inspector' {
|
|
|
2742
2742
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
2743
2743
|
*/
|
|
2744
2744
|
declare module 'node:inspector' {
|
|
2745
|
-
|
|
2746
|
-
export = inspector;
|
|
2745
|
+
export * from 'inspector';
|
|
2747
2746
|
}
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.12.
|
|
3
|
+
"version": "20.12.3",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -212,6 +212,6 @@
|
|
|
212
212
|
"dependencies": {
|
|
213
213
|
"undici-types": "~5.26.4"
|
|
214
214
|
},
|
|
215
|
-
"typesPublisherContentHash": "
|
|
215
|
+
"typesPublisherContentHash": "02d120a0066fb0a44108576dbebd52092ec7972656913aa42b204107e43f732a",
|
|
216
216
|
"typeScriptVersion": "4.7"
|
|
217
217
|
}
|