@types/node 18.17.17 → 18.17.19
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.17/README.md +1 -1
- node v18.17/assert/strict.d.ts +4 -4
- node v18.17/assert.d.ts +48 -24
- node v18.17/async_hooks.d.ts +10 -7
- node v18.17/buffer.d.ts +32 -34
- node v18.17/child_process.d.ts +262 -122
- node v18.17/cluster.d.ts +107 -89
- node v18.17/console.d.ts +7 -7
- node v18.17/constants.d.ts +12 -11
- node v18.17/crypto.d.ts +746 -268
- node v18.17/dgram.d.ts +81 -45
- node v18.17/diagnostics_channel.d.ts +3 -3
- node v18.17/dns/promises.d.ts +28 -25
- node v18.17/dns.d.ts +203 -62
- node v18.17/dom-events.d.ts +67 -71
- node v18.17/domain.d.ts +4 -4
- node v18.17/events.d.ts +15 -7
- node v18.17/fs/promises.d.ts +102 -73
- node v18.17/fs.d.ts +513 -311
- node v18.17/globals.d.ts +16 -18
- node v18.17/http.d.ts +185 -185
- node v18.17/http2.d.ts +628 -376
- node v18.17/https.d.ts +107 -105
- node v18.17/inspector.d.ts +3 -3
- node v18.17/module.d.ts +11 -8
- node v18.17/net.d.ts +112 -93
- node v18.17/os.d.ts +7 -7
- node v18.17/package.json +2 -2
- node v18.17/path.d.ts +13 -13
- node v18.17/perf_hooks.d.ts +20 -19
- node v18.17/process.d.ts +155 -125
- node v18.17/punycode.d.ts +3 -3
- node v18.17/querystring.d.ts +14 -4
- node v18.17/readline/promises.d.ts +5 -5
- node v18.17/readline.d.ts +69 -56
- node v18.17/repl.d.ts +67 -61
- node v18.17/stream/consumers.d.ts +4 -4
- node v18.17/stream/promises.d.ts +56 -15
- node v18.17/stream/web.d.ts +26 -20
- node v18.17/stream.d.ts +356 -226
- node v18.17/string_decoder.d.ts +3 -3
- node v18.17/test.d.ts +76 -91
- node v18.17/timers/promises.d.ts +4 -4
- node v18.17/timers.d.ts +23 -8
- node v18.17/tls.d.ts +151 -71
- node v18.17/trace_events.d.ts +3 -3
- node v18.17/ts4.8/assert/strict.d.ts +4 -4
- node v18.17/ts4.8/assert.d.ts +48 -24
- node v18.17/ts4.8/async_hooks.d.ts +10 -7
- node v18.17/ts4.8/buffer.d.ts +32 -34
- node v18.17/ts4.8/child_process.d.ts +262 -122
- node v18.17/ts4.8/cluster.d.ts +107 -89
- node v18.17/ts4.8/console.d.ts +7 -7
- node v18.17/ts4.8/constants.d.ts +12 -11
- node v18.17/ts4.8/crypto.d.ts +746 -268
- node v18.17/ts4.8/dgram.d.ts +81 -45
- node v18.17/ts4.8/diagnostics_channel.d.ts +3 -3
- node v18.17/ts4.8/dns/promises.d.ts +28 -25
- node v18.17/ts4.8/dns.d.ts +203 -62
- node v18.17/ts4.8/dom-events.d.ts +67 -71
- node v18.17/ts4.8/domain.d.ts +4 -4
- node v18.17/ts4.8/events.d.ts +15 -7
- node v18.17/ts4.8/fs/promises.d.ts +102 -73
- node v18.17/ts4.8/fs.d.ts +514 -312
- node v18.17/ts4.8/globals.d.ts +44 -46
- node v18.17/ts4.8/http.d.ts +185 -185
- node v18.17/ts4.8/http2.d.ts +628 -376
- node v18.17/ts4.8/https.d.ts +107 -105
- node v18.17/ts4.8/inspector.d.ts +3 -3
- node v18.17/ts4.8/module.d.ts +11 -8
- node v18.17/ts4.8/net.d.ts +112 -93
- node v18.17/ts4.8/os.d.ts +7 -7
- node v18.17/ts4.8/path.d.ts +13 -13
- node v18.17/ts4.8/perf_hooks.d.ts +20 -19
- node v18.17/ts4.8/process.d.ts +155 -125
- node v18.17/ts4.8/punycode.d.ts +3 -3
- node v18.17/ts4.8/querystring.d.ts +14 -4
- node v18.17/ts4.8/readline/promises.d.ts +5 -5
- node v18.17/ts4.8/readline.d.ts +69 -56
- node v18.17/ts4.8/repl.d.ts +67 -61
- node v18.17/ts4.8/stream/consumers.d.ts +4 -4
- node v18.17/ts4.8/stream/promises.d.ts +56 -15
- node v18.17/ts4.8/stream/web.d.ts +26 -20
- node v18.17/ts4.8/stream.d.ts +321 -217
- node v18.17/ts4.8/string_decoder.d.ts +3 -3
- node v18.17/ts4.8/test.d.ts +75 -90
- node v18.17/ts4.8/timers/promises.d.ts +4 -4
- node v18.17/ts4.8/timers.d.ts +23 -8
- node v18.17/ts4.8/tls.d.ts +151 -71
- node v18.17/ts4.8/trace_events.d.ts +3 -3
- node v18.17/ts4.8/tty.d.ts +10 -10
- node v18.17/ts4.8/url.d.ts +26 -14
- node v18.17/ts4.8/util.d.ts +178 -117
- node v18.17/ts4.8/v8.d.ts +4 -4
- node v18.17/ts4.8/vm.d.ts +60 -42
- node v18.17/ts4.8/wasi.d.ts +3 -3
- node v18.17/ts4.8/worker_threads.d.ts +82 -85
- node v18.17/ts4.8/zlib.d.ts +9 -9
- node v18.17/tty.d.ts +10 -10
- node v18.17/url.d.ts +26 -14
- node v18.17/util.d.ts +178 -117
- node v18.17/v8.d.ts +4 -4
- node v18.17/vm.d.ts +60 -42
- node v18.17/wasi.d.ts +3 -3
- node v18.17/worker_threads.d.ts +82 -85
- node v18.17/zlib.d.ts +9 -9
node v18.17/ts4.8/globals.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ interface ErrorConstructor {
|
|
|
20
20
|
------------------------------------------------*/
|
|
21
21
|
|
|
22
22
|
// For backwards compability
|
|
23
|
-
interface NodeRequire extends NodeJS.Require {
|
|
24
|
-
interface RequireResolve extends NodeJS.RequireResolve {
|
|
25
|
-
interface NodeModule extends NodeJS.Module {
|
|
23
|
+
interface NodeRequire extends NodeJS.Require {}
|
|
24
|
+
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
25
|
+
interface NodeModule extends NodeJS.Module {}
|
|
26
26
|
|
|
27
27
|
declare var process: NodeJS.Process;
|
|
28
28
|
declare var console: Console;
|
|
@@ -41,50 +41,48 @@ declare var exports: any;
|
|
|
41
41
|
*/
|
|
42
42
|
declare var gc: undefined | (() => void);
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
// #region borrowed
|
|
45
45
|
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
46
46
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
47
47
|
interface AbortController {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Returns the AbortSignal object associated with this object.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
readonly signal: AbortSignal;
|
|
53
|
+
/**
|
|
54
|
+
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
55
|
+
*/
|
|
56
|
+
abort(reason?: any): void;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
60
60
|
interface AbortSignal extends EventTarget {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
63
|
+
*/
|
|
64
|
+
readonly aborted: boolean;
|
|
65
|
+
readonly reason: any;
|
|
66
|
+
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
+
throwIfAborted(): void;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
//#region ArrayLike.at()
|
|
70
|
+
declare var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
|
71
|
+
: {
|
|
72
|
+
prototype: AbortController;
|
|
73
|
+
new(): AbortController;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
declare var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
|
77
|
+
: {
|
|
78
|
+
prototype: AbortSignal;
|
|
79
|
+
new(): AbortSignal;
|
|
80
|
+
abort(reason?: any): AbortSignal;
|
|
81
|
+
timeout(milliseconds: number): AbortSignal;
|
|
82
|
+
};
|
|
83
|
+
// #endregion borrowed
|
|
84
|
+
|
|
85
|
+
// #region ArrayLike.at()
|
|
88
86
|
interface RelativeIndexable<T> {
|
|
89
87
|
/**
|
|
90
88
|
* Takes an integer value and returns the item at that index,
|
|
@@ -106,7 +104,7 @@ interface Float32Array extends RelativeIndexable<number> {}
|
|
|
106
104
|
interface Float64Array extends RelativeIndexable<number> {}
|
|
107
105
|
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
108
106
|
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
109
|
-
|
|
107
|
+
// #endregion ArrayLike.at() end
|
|
110
108
|
|
|
111
109
|
/**
|
|
112
110
|
* @since v17.0.0
|
|
@@ -115,7 +113,7 @@ interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
|
115
113
|
*/
|
|
116
114
|
declare function structuredClone<T>(
|
|
117
115
|
value: T,
|
|
118
|
-
transfer?: { transfer: ReadonlyArray<import(
|
|
116
|
+
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
119
117
|
): T;
|
|
120
118
|
|
|
121
119
|
/*----------------------------------------------*
|
|
@@ -212,7 +210,7 @@ declare namespace NodeJS {
|
|
|
212
210
|
pause(): this;
|
|
213
211
|
resume(): this;
|
|
214
212
|
isPaused(): boolean;
|
|
215
|
-
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined
|
|
213
|
+
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
216
214
|
unpipe(destination?: WritableStream): this;
|
|
217
215
|
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
218
216
|
wrap(oldStream: ReadableStream): this;
|
|
@@ -228,7 +226,7 @@ declare namespace NodeJS {
|
|
|
228
226
|
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
229
227
|
}
|
|
230
228
|
|
|
231
|
-
interface ReadWriteStream extends ReadableStream, WritableStream {
|
|
229
|
+
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
232
230
|
|
|
233
231
|
interface RefCounted {
|
|
234
232
|
ref(): this;
|
|
@@ -261,14 +259,14 @@ declare namespace NodeJS {
|
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
interface RequireResolve {
|
|
264
|
-
(id: string, options?: { paths?: string[] | undefined
|
|
262
|
+
(id: string, options?: { paths?: string[] | undefined }): string;
|
|
265
263
|
paths(request: string): string[] | null;
|
|
266
264
|
}
|
|
267
265
|
|
|
268
266
|
interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
267
|
+
".js": (m: Module, filename: string) => any;
|
|
268
|
+
".json": (m: Module, filename: string) => any;
|
|
269
|
+
".node": (m: Module, filename: string) => any;
|
|
272
270
|
}
|
|
273
271
|
interface Module {
|
|
274
272
|
/**
|