@types/node 24.10.2 → 25.0.0
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/assert/strict.d.ts +5 -11
- node/assert.d.ts +9 -169
- node/async_hooks.d.ts +8 -8
- node/buffer.buffer.d.ts +1 -7
- node/buffer.d.ts +44 -168
- node/child_process.d.ts +16 -64
- node/cluster.d.ts +240 -332
- node/console.d.ts +49 -351
- node/constants.d.ts +3 -4
- node/crypto.d.ts +279 -1631
- node/dgram.d.ts +15 -51
- node/diagnostics_channel.d.ts +4 -4
- node/dns/promises.d.ts +3 -3
- node/dns.d.ts +131 -132
- node/domain.d.ts +13 -17
- node/events.d.ts +719 -649
- node/fs/promises.d.ts +7 -8
- node/fs.d.ts +417 -455
- node/globals.d.ts +6 -26
- node/globals.typedarray.d.ts +60 -0
- node/http.d.ts +263 -254
- node/http2.d.ts +528 -804
- node/https.d.ts +59 -239
- node/index.d.ts +15 -1
- node/inspector/promises.d.ts +41 -0
- node/inspector.d.ts +6 -59
- node/inspector.generated.d.ts +3 -10
- node/module.d.ts +47 -122
- node/net.d.ts +63 -184
- node/os.d.ts +6 -6
- node/package.json +2 -2
- node/path/posix.d.ts +8 -0
- node/path/win32.d.ts +8 -0
- node/path.d.ts +120 -133
- node/perf_hooks.d.ts +282 -643
- node/process.d.ts +151 -128
- node/punycode.d.ts +5 -5
- node/querystring.d.ts +4 -4
- node/quic.d.ts +910 -0
- node/readline/promises.d.ts +3 -3
- node/readline.d.ts +67 -120
- node/repl.d.ts +75 -98
- node/sea.d.ts +1 -1
- node/sqlite.d.ts +2 -2
- node/stream/consumers.d.ts +10 -10
- node/stream/promises.d.ts +136 -15
- node/stream/web.d.ts +176 -453
- node/stream.d.ts +555 -478
- node/string_decoder.d.ts +4 -4
- node/test/reporters.d.ts +96 -0
- node/test.d.ts +80 -180
- node/timers/promises.d.ts +4 -4
- node/timers.d.ts +4 -130
- node/tls.d.ts +102 -177
- node/trace_events.d.ts +9 -9
- node/ts5.6/buffer.buffer.d.ts +1 -7
- node/ts5.6/index.d.ts +15 -1
- node/ts5.7/index.d.ts +15 -1
- node/tty.d.ts +58 -16
- node/url.d.ts +54 -592
- node/util/types.d.ts +558 -0
- node/util.d.ts +117 -792
- node/v8.d.ts +32 -5
- node/vm.d.ts +13 -13
- node/wasi.d.ts +4 -4
- node/web-globals/abortcontroller.d.ts +27 -2
- node/web-globals/blob.d.ts +23 -0
- node/web-globals/console.d.ts +9 -0
- node/web-globals/crypto.d.ts +7 -0
- node/web-globals/encoding.d.ts +11 -0
- node/web-globals/events.d.ts +9 -0
- node/web-globals/fetch.d.ts +4 -0
- node/web-globals/importmeta.d.ts +13 -0
- node/web-globals/messaging.d.ts +23 -0
- node/web-globals/performance.d.ts +45 -0
- node/web-globals/streams.d.ts +93 -0
- node/web-globals/timers.d.ts +44 -0
- node/web-globals/url.d.ts +24 -0
- node/worker_threads.d.ts +176 -358
- node/zlib.d.ts +8 -71
node/domain.d.ts
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to
|
|
13
13
|
* exit immediately with an error code.
|
|
14
14
|
* @deprecated Since v1.4.2 - Deprecated
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/domain.js)
|
|
16
16
|
*/
|
|
17
|
-
declare module "domain" {
|
|
18
|
-
import EventEmitter
|
|
17
|
+
declare module "node:domain" {
|
|
18
|
+
import { EventEmitter } from "node:events";
|
|
19
19
|
/**
|
|
20
20
|
* The `Domain` class encapsulates the functionality of routing errors and
|
|
21
21
|
* uncaught exceptions to the active `Domain` object.
|
|
@@ -24,10 +24,9 @@ declare module "domain" {
|
|
|
24
24
|
*/
|
|
25
25
|
class Domain extends EventEmitter {
|
|
26
26
|
/**
|
|
27
|
-
* An array of
|
|
28
|
-
* to the domain.
|
|
27
|
+
* An array of event emitters that have been explicitly added to the domain.
|
|
29
28
|
*/
|
|
30
|
-
members:
|
|
29
|
+
members: EventEmitter[];
|
|
31
30
|
/**
|
|
32
31
|
* The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly
|
|
33
32
|
* pushes the domain onto the domain
|
|
@@ -91,20 +90,17 @@ declare module "domain" {
|
|
|
91
90
|
* will be routed to the domain's `'error'` event, just like with implicit
|
|
92
91
|
* binding.
|
|
93
92
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* If the Timer or `EventEmitter` was already bound to a domain, it is removed
|
|
98
|
-
* from that one, and bound to this one instead.
|
|
99
|
-
* @param emitter emitter or timer to be added to the domain
|
|
93
|
+
* If the `EventEmitter` was already bound to a domain, it is removed from that
|
|
94
|
+
* one, and bound to this one instead.
|
|
95
|
+
* @param emitter emitter to be added to the domain
|
|
100
96
|
*/
|
|
101
|
-
add(emitter: EventEmitter
|
|
97
|
+
add(emitter: EventEmitter): void;
|
|
102
98
|
/**
|
|
103
99
|
* The opposite of {@link add}. Removes domain handling from the
|
|
104
100
|
* specified emitter.
|
|
105
|
-
* @param emitter emitter
|
|
101
|
+
* @param emitter emitter to be removed from the domain
|
|
106
102
|
*/
|
|
107
|
-
remove(emitter: EventEmitter
|
|
103
|
+
remove(emitter: EventEmitter): void;
|
|
108
104
|
/**
|
|
109
105
|
* The returned function will be a wrapper around the supplied callback
|
|
110
106
|
* function. When the returned function is called, any errors that are
|
|
@@ -165,6 +161,6 @@ declare module "domain" {
|
|
|
165
161
|
}
|
|
166
162
|
function create(): Domain;
|
|
167
163
|
}
|
|
168
|
-
declare module "
|
|
169
|
-
export * from "domain";
|
|
164
|
+
declare module "domain" {
|
|
165
|
+
export * from "node:domain";
|
|
170
166
|
}
|