@types/node 14.18.61 → 14.18.63
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 v14.18/README.md +1 -1
- node v14.18/assert.d.ts +33 -31
- node v14.18/async_hooks.d.ts +27 -20
- node v14.18/buffer.d.ts +4 -4
- node v14.18/child_process.d.ts +191 -62
- node v14.18/cluster.d.ts +59 -28
- node v14.18/console.d.ts +6 -6
- node v14.18/constants.d.ts +12 -11
- node v14.18/crypto.d.ts +232 -228
- node v14.18/dgram.d.ts +50 -14
- node v14.18/dns.d.ts +183 -54
- node v14.18/domain.d.ts +4 -4
- node v14.18/events.d.ts +4 -4
- node v14.18/fs/promises.d.ts +87 -25
- node v14.18/fs.d.ts +404 -104
- node v14.18/globals.d.ts +33 -16
- node v14.18/http.d.ts +201 -201
- node v14.18/http2.d.ts +340 -93
- node v14.18/https.d.ts +107 -105
- node v14.18/inspector.d.ts +4 -4
- node v14.18/module.d.ts +4 -4
- node v14.18/net.d.ts +27 -12
- node v14.18/os.d.ts +4 -4
- node v14.18/package.json +2 -2
- node v14.18/path.d.ts +5 -5
- node v14.18/perf_hooks.d.ts +5 -5
- node v14.18/process.d.ts +61 -22
- node v14.18/punycode.d.ts +3 -3
- node v14.18/querystring.d.ts +15 -5
- node v14.18/readline.d.ts +16 -6
- node v14.18/repl.d.ts +13 -7
- node v14.18/stream.d.ts +160 -100
- node v14.18/string_decoder.d.ts +3 -3
- node v14.18/timers.d.ts +3 -3
- node v14.18/tls.d.ts +109 -27
- node v14.18/trace_events.d.ts +3 -3
- node v14.18/ts4.8/assert.d.ts +33 -31
- node v14.18/ts4.8/async_hooks.d.ts +27 -20
- node v14.18/ts4.8/buffer.d.ts +4 -4
- node v14.18/ts4.8/child_process.d.ts +191 -62
- node v14.18/ts4.8/cluster.d.ts +59 -28
- node v14.18/ts4.8/console.d.ts +6 -6
- node v14.18/ts4.8/constants.d.ts +12 -11
- node v14.18/ts4.8/crypto.d.ts +232 -228
- node v14.18/ts4.8/dgram.d.ts +50 -14
- node v14.18/ts4.8/dns.d.ts +183 -54
- node v14.18/ts4.8/domain.d.ts +4 -4
- node v14.18/ts4.8/events.d.ts +4 -4
- node v14.18/ts4.8/fs/promises.d.ts +87 -25
- node v14.18/ts4.8/fs.d.ts +404 -104
- node v14.18/ts4.8/globals.d.ts +33 -16
- node v14.18/ts4.8/http.d.ts +200 -200
- node v14.18/ts4.8/http2.d.ts +340 -93
- node v14.18/ts4.8/https.d.ts +107 -105
- node v14.18/ts4.8/inspector.d.ts +4 -4
- node v14.18/ts4.8/module.d.ts +4 -4
- node v14.18/ts4.8/net.d.ts +27 -12
- node v14.18/ts4.8/os.d.ts +4 -4
- node v14.18/ts4.8/path.d.ts +5 -5
- node v14.18/ts4.8/perf_hooks.d.ts +5 -5
- node v14.18/ts4.8/process.d.ts +61 -22
- node v14.18/ts4.8/punycode.d.ts +3 -3
- node v14.18/ts4.8/querystring.d.ts +15 -5
- node v14.18/ts4.8/readline.d.ts +16 -6
- node v14.18/ts4.8/repl.d.ts +13 -7
- node v14.18/ts4.8/stream.d.ts +160 -100
- node v14.18/ts4.8/string_decoder.d.ts +3 -3
- node v14.18/ts4.8/timers.d.ts +3 -3
- node v14.18/ts4.8/tls.d.ts +109 -27
- node v14.18/ts4.8/trace_events.d.ts +3 -3
- node v14.18/ts4.8/tty.d.ts +4 -4
- node v14.18/ts4.8/url.d.ts +21 -12
- node v14.18/ts4.8/util.d.ts +102 -40
- node v14.18/ts4.8/v8.d.ts +4 -5
- node v14.18/ts4.8/vm.d.ts +7 -7
- node v14.18/ts4.8/wasi.d.ts +3 -4
- node v14.18/ts4.8/worker_threads.d.ts +8 -8
- node v14.18/ts4.8/zlib.d.ts +13 -13
- node v14.18/tty.d.ts +4 -4
- node v14.18/url.d.ts +21 -12
- node v14.18/util.d.ts +102 -40
- node v14.18/v8.d.ts +4 -5
- node v14.18/vm.d.ts +7 -7
- node v14.18/wasi.d.ts +3 -4
- node v14.18/worker_threads.d.ts +8 -8
- node v14.18/zlib.d.ts +13 -13
node v14.18/ts4.8/zlib.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import * as stream from
|
|
1
|
+
declare module "zlib" {
|
|
2
|
+
import * as stream from "stream";
|
|
3
3
|
|
|
4
4
|
interface ZlibOptions {
|
|
5
5
|
/**
|
|
@@ -63,15 +63,15 @@ declare module 'node:zlib' {
|
|
|
63
63
|
reset(): void;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
interface BrotliCompress extends stream.Transform, Zlib {
|
|
67
|
-
interface BrotliDecompress extends stream.Transform, Zlib {
|
|
68
|
-
interface Gzip extends stream.Transform, Zlib {
|
|
69
|
-
interface Gunzip extends stream.Transform, Zlib {
|
|
70
|
-
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {
|
|
71
|
-
interface Inflate extends stream.Transform, Zlib, ZlibReset {
|
|
72
|
-
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {
|
|
73
|
-
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {
|
|
74
|
-
interface Unzip extends stream.Transform, Zlib {
|
|
66
|
+
interface BrotliCompress extends stream.Transform, Zlib {}
|
|
67
|
+
interface BrotliDecompress extends stream.Transform, Zlib {}
|
|
68
|
+
interface Gzip extends stream.Transform, Zlib {}
|
|
69
|
+
interface Gunzip extends stream.Transform, Zlib {}
|
|
70
|
+
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
71
|
+
interface Inflate extends stream.Transform, Zlib, ZlibReset {}
|
|
72
|
+
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
73
|
+
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
|
|
74
|
+
interface Unzip extends stream.Transform, Zlib {}
|
|
75
75
|
|
|
76
76
|
function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
|
|
77
77
|
function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
|
|
@@ -359,6 +359,6 @@ declare module 'node:zlib' {
|
|
|
359
359
|
/** @deprecated */
|
|
360
360
|
const Z_DEFLATED: number;
|
|
361
361
|
}
|
|
362
|
-
declare module
|
|
363
|
-
export * from
|
|
362
|
+
declare module "node:zlib" {
|
|
363
|
+
export * from "zlib";
|
|
364
364
|
}
|
node v14.18/tty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import * as net from
|
|
1
|
+
declare module "tty" {
|
|
2
|
+
import * as net from "net";
|
|
3
3
|
|
|
4
4
|
function isatty(fd: number): boolean;
|
|
5
5
|
class ReadStream extends net.Socket {
|
|
@@ -64,6 +64,6 @@ declare module 'node:tty' {
|
|
|
64
64
|
isTTY: boolean;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
declare module
|
|
68
|
-
export * from
|
|
67
|
+
declare module "node:tty" {
|
|
68
|
+
export * from "tty";
|
|
69
69
|
}
|
node v14.18/url.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import { ClientRequestArgs } from
|
|
3
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from
|
|
1
|
+
declare module "url" {
|
|
2
|
+
import { ClientRequestArgs } from "node:http";
|
|
3
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from "querystring";
|
|
4
4
|
|
|
5
5
|
// Input to `url.format`
|
|
6
6
|
interface UrlObject {
|
|
@@ -44,7 +44,11 @@ declare module 'node:url' {
|
|
|
44
44
|
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
45
45
|
function parse(urlStr: string): UrlWithStringQuery;
|
|
46
46
|
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
47
|
-
function parse(
|
|
47
|
+
function parse(
|
|
48
|
+
urlStr: string,
|
|
49
|
+
parseQueryString: false | undefined,
|
|
50
|
+
slashesDenoteHost?: boolean,
|
|
51
|
+
): UrlWithStringQuery;
|
|
48
52
|
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
49
53
|
function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
50
54
|
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
@@ -126,7 +130,14 @@ declare module 'node:url' {
|
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
129
|
-
constructor(
|
|
133
|
+
constructor(
|
|
134
|
+
init?:
|
|
135
|
+
| URLSearchParams
|
|
136
|
+
| string
|
|
137
|
+
| Record<string, string | ReadonlyArray<string>>
|
|
138
|
+
| Iterable<[string, string]>
|
|
139
|
+
| ReadonlyArray<[string, string]>,
|
|
140
|
+
);
|
|
130
141
|
readonly size: number;
|
|
131
142
|
append(name: string, value: string): void;
|
|
132
143
|
delete(name: string): void;
|
|
@@ -143,7 +154,7 @@ declare module 'node:url' {
|
|
|
143
154
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
144
155
|
}
|
|
145
156
|
|
|
146
|
-
import { URL as _URL, URLSearchParams as _URLSearchParams } from
|
|
157
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
|
|
147
158
|
global {
|
|
148
159
|
interface URLSearchParams extends _URLSearchParams {}
|
|
149
160
|
interface URL extends _URL {}
|
|
@@ -158,8 +169,7 @@ declare module 'node:url' {
|
|
|
158
169
|
*/
|
|
159
170
|
var URL:
|
|
160
171
|
// For compatibility with "dom" and "webworker" URL declarations
|
|
161
|
-
typeof globalThis extends { onmessage: any
|
|
162
|
-
? URL
|
|
172
|
+
typeof globalThis extends { onmessage: any; URL: infer URL } ? URL
|
|
163
173
|
: typeof _URL;
|
|
164
174
|
/**
|
|
165
175
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
|
|
@@ -168,11 +178,10 @@ declare module 'node:url' {
|
|
|
168
178
|
*/
|
|
169
179
|
var URLSearchParams:
|
|
170
180
|
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
|
171
|
-
typeof globalThis extends { onmessage: any
|
|
172
|
-
? URLSearchParams
|
|
181
|
+
typeof globalThis extends { onmessage: any; URLSearchParams: infer URLSearchParams } ? URLSearchParams
|
|
173
182
|
: typeof _URLSearchParams;
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
|
-
declare module
|
|
177
|
-
export * from
|
|
185
|
+
declare module "node:url" {
|
|
186
|
+
export * from "url";
|
|
178
187
|
}
|
node v14.18/util.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
interface InspectOptions extends NodeJS.InspectOptions {
|
|
3
|
-
type Style =
|
|
1
|
+
declare module "util" {
|
|
2
|
+
interface InspectOptions extends NodeJS.InspectOptions {}
|
|
3
|
+
type Style =
|
|
4
|
+
| "special"
|
|
5
|
+
| "number"
|
|
6
|
+
| "bigint"
|
|
7
|
+
| "boolean"
|
|
8
|
+
| "undefined"
|
|
9
|
+
| "null"
|
|
10
|
+
| "string"
|
|
11
|
+
| "symbol"
|
|
12
|
+
| "date"
|
|
13
|
+
| "regexp"
|
|
14
|
+
| "module";
|
|
4
15
|
type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => string;
|
|
5
16
|
interface InspectOptionsStylized extends InspectOptions {
|
|
6
17
|
stylize(text: string, styleType: Style): string;
|
|
@@ -15,7 +26,7 @@ declare module 'node:util' {
|
|
|
15
26
|
namespace inspect {
|
|
16
27
|
let colors: NodeJS.Dict<[number, number]>;
|
|
17
28
|
let styles: {
|
|
18
|
-
[K in Style]: string
|
|
29
|
+
[K in Style]: string;
|
|
19
30
|
};
|
|
20
31
|
let defaultOptions: InspectOptions;
|
|
21
32
|
/**
|
|
@@ -65,29 +76,74 @@ declare module 'node:util' {
|
|
|
65
76
|
function isDeepStrictEqual(val1: any, val2: any): boolean;
|
|
66
77
|
|
|
67
78
|
function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
68
|
-
function callbackify<TResult>(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
function callbackify<T1
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
function callbackify<TResult>(
|
|
80
|
+
fn: () => Promise<TResult>,
|
|
81
|
+
): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
82
|
+
function callbackify<T1>(
|
|
83
|
+
fn: (arg1: T1) => Promise<void>,
|
|
84
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
85
|
+
function callbackify<T1, TResult>(
|
|
86
|
+
fn: (arg1: T1) => Promise<TResult>,
|
|
87
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
88
|
+
function callbackify<T1, T2>(
|
|
89
|
+
fn: (arg1: T1, arg2: T2) => Promise<void>,
|
|
90
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
91
|
+
function callbackify<T1, T2, TResult>(
|
|
92
|
+
fn: (arg1: T1, arg2: T2) => Promise<TResult>,
|
|
93
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
94
|
+
function callbackify<T1, T2, T3>(
|
|
95
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>,
|
|
96
|
+
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
74
97
|
function callbackify<T1, T2, T3, TResult>(
|
|
75
|
-
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult
|
|
98
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>,
|
|
99
|
+
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
76
100
|
function callbackify<T1, T2, T3, T4>(
|
|
77
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void
|
|
101
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>,
|
|
102
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
78
103
|
function callbackify<T1, T2, T3, T4, TResult>(
|
|
79
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult
|
|
104
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>,
|
|
105
|
+
): (
|
|
106
|
+
arg1: T1,
|
|
107
|
+
arg2: T2,
|
|
108
|
+
arg3: T3,
|
|
109
|
+
arg4: T4,
|
|
110
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
111
|
+
) => void;
|
|
80
112
|
function callbackify<T1, T2, T3, T4, T5>(
|
|
81
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void
|
|
113
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>,
|
|
114
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
82
115
|
function callbackify<T1, T2, T3, T4, T5, TResult>(
|
|
83
116
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
|
|
84
|
-
): (
|
|
117
|
+
): (
|
|
118
|
+
arg1: T1,
|
|
119
|
+
arg2: T2,
|
|
120
|
+
arg3: T3,
|
|
121
|
+
arg4: T4,
|
|
122
|
+
arg5: T5,
|
|
123
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
124
|
+
) => void;
|
|
85
125
|
function callbackify<T1, T2, T3, T4, T5, T6>(
|
|
86
126
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
|
|
87
|
-
): (
|
|
127
|
+
): (
|
|
128
|
+
arg1: T1,
|
|
129
|
+
arg2: T2,
|
|
130
|
+
arg3: T3,
|
|
131
|
+
arg4: T4,
|
|
132
|
+
arg5: T5,
|
|
133
|
+
arg6: T6,
|
|
134
|
+
callback: (err: NodeJS.ErrnoException) => void,
|
|
135
|
+
) => void;
|
|
88
136
|
function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
|
|
89
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult
|
|
90
|
-
): (
|
|
137
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>,
|
|
138
|
+
): (
|
|
139
|
+
arg1: T1,
|
|
140
|
+
arg2: T2,
|
|
141
|
+
arg3: T3,
|
|
142
|
+
arg4: T4,
|
|
143
|
+
arg5: T5,
|
|
144
|
+
arg6: T6,
|
|
145
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
146
|
+
) => void;
|
|
91
147
|
|
|
92
148
|
interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
|
93
149
|
__promisify__: TCustom;
|
|
@@ -102,18 +158,28 @@ declare module 'node:util' {
|
|
|
102
158
|
function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
103
159
|
function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
|
|
104
160
|
function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
105
|
-
function promisify<T1, TResult>(
|
|
161
|
+
function promisify<T1, TResult>(
|
|
162
|
+
fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void,
|
|
163
|
+
): (arg1: T1) => Promise<TResult>;
|
|
106
164
|
function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
|
107
|
-
function promisify<T1, T2, TResult>(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
165
|
+
function promisify<T1, T2, TResult>(
|
|
166
|
+
fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void,
|
|
167
|
+
): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
168
|
+
function promisify<T1, T2>(
|
|
169
|
+
fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void,
|
|
170
|
+
): (arg1: T1, arg2: T2) => Promise<void>;
|
|
171
|
+
function promisify<T1, T2, T3, TResult>(
|
|
172
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void,
|
|
173
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
174
|
+
function promisify<T1, T2, T3>(
|
|
175
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void,
|
|
176
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
112
177
|
function promisify<T1, T2, T3, T4, TResult>(
|
|
113
178
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
|
|
114
179
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
115
|
-
function promisify<T1, T2, T3, T4>(
|
|
116
|
-
(arg1: T1, arg2: T2, arg3: T3, arg4: T4) =>
|
|
180
|
+
function promisify<T1, T2, T3, T4>(
|
|
181
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void,
|
|
182
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
117
183
|
function promisify<T1, T2, T3, T4, T5, TResult>(
|
|
118
184
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
|
|
119
185
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
@@ -147,10 +213,8 @@ declare module 'node:util' {
|
|
|
147
213
|
function isInt32Array(object: any): object is Int32Array;
|
|
148
214
|
function isMap<T>(
|
|
149
215
|
object: T | {},
|
|
150
|
-
): object is T extends ReadonlyMap<any, any>
|
|
151
|
-
|
|
152
|
-
? never
|
|
153
|
-
: ReadonlyMap<any, any>
|
|
216
|
+
): object is T extends ReadonlyMap<any, any> ? unknown extends T ? never
|
|
217
|
+
: ReadonlyMap<any, any>
|
|
154
218
|
: Map<any, any>;
|
|
155
219
|
function isMapIterator(object: any): boolean;
|
|
156
220
|
function isModuleNamespaceObject(value: any): boolean;
|
|
@@ -161,10 +225,8 @@ declare module 'node:util' {
|
|
|
161
225
|
function isRegExp(object: any): object is RegExp;
|
|
162
226
|
function isSet<T>(
|
|
163
227
|
object: T | {},
|
|
164
|
-
): object is T extends ReadonlySet<any>
|
|
165
|
-
|
|
166
|
-
? never
|
|
167
|
-
: ReadonlySet<any>
|
|
228
|
+
): object is T extends ReadonlySet<any> ? unknown extends T ? never
|
|
229
|
+
: ReadonlySet<any>
|
|
168
230
|
: Set<any>;
|
|
169
231
|
function isSetIterator(object: any): boolean;
|
|
170
232
|
function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
|
|
@@ -184,12 +246,12 @@ declare module 'node:util' {
|
|
|
184
246
|
readonly fatal: boolean;
|
|
185
247
|
readonly ignoreBOM: boolean;
|
|
186
248
|
constructor(
|
|
187
|
-
|
|
188
|
-
|
|
249
|
+
encoding?: string,
|
|
250
|
+
options?: { fatal?: boolean | undefined; ignoreBOM?: boolean | undefined },
|
|
189
251
|
);
|
|
190
252
|
decode(
|
|
191
|
-
|
|
192
|
-
|
|
253
|
+
input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
|
|
254
|
+
options?: { stream?: boolean | undefined },
|
|
193
255
|
): string;
|
|
194
256
|
}
|
|
195
257
|
|
|
@@ -211,6 +273,6 @@ declare module 'node:util' {
|
|
|
211
273
|
encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
|
|
212
274
|
}
|
|
213
275
|
}
|
|
214
|
-
declare module
|
|
215
|
-
export * from
|
|
276
|
+
declare module "node:util" {
|
|
277
|
+
export * from "util";
|
|
216
278
|
}
|
node v14.18/v8.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import { Readable } from
|
|
1
|
+
declare module "v8" {
|
|
2
|
+
import { Readable } from "stream";
|
|
3
3
|
|
|
4
4
|
interface HeapSpaceInfo {
|
|
5
5
|
space_name: string;
|
|
@@ -52,7 +52,6 @@ declare module 'node:v8' {
|
|
|
52
52
|
function getHeapSnapshot(): Readable;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
55
|
* @param fileName The file path where the V8 heap snapshot is to be
|
|
57
56
|
* saved. If not specified, a file name with the pattern
|
|
58
57
|
* `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be
|
|
@@ -185,6 +184,6 @@ declare module 'node:v8' {
|
|
|
185
184
|
*/
|
|
186
185
|
function deserialize(data: NodeJS.TypedArray): any;
|
|
187
186
|
}
|
|
188
|
-
declare module
|
|
189
|
-
export * from
|
|
187
|
+
declare module "node:v8" {
|
|
188
|
+
export * from "v8";
|
|
190
189
|
}
|
node v14.18/vm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
interface Context extends NodeJS.Dict<any> {
|
|
1
|
+
declare module "vm" {
|
|
2
|
+
interface Context extends NodeJS.Dict<any> {}
|
|
3
3
|
interface BaseOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Specifies the filename used in stack traces produced by this script.
|
|
@@ -45,7 +45,7 @@ declare module 'node:vm' {
|
|
|
45
45
|
/**
|
|
46
46
|
* If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
|
|
47
47
|
*/
|
|
48
|
-
microtaskMode?:
|
|
48
|
+
microtaskMode?: "afterEvaluate" | undefined;
|
|
49
49
|
}
|
|
50
50
|
interface CompileFunctionOptions extends BaseOptions {
|
|
51
51
|
/**
|
|
@@ -98,10 +98,10 @@ declare module 'node:vm' {
|
|
|
98
98
|
/**
|
|
99
99
|
* If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
|
|
100
100
|
*/
|
|
101
|
-
microtaskMode?:
|
|
101
|
+
microtaskMode?: "afterEvaluate" | undefined;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
type MeasureMemoryMode =
|
|
104
|
+
type MeasureMemoryMode = "summary" | "detailed";
|
|
105
105
|
|
|
106
106
|
interface MeasureMemoryOptions {
|
|
107
107
|
/**
|
|
@@ -150,6 +150,6 @@ declare module 'node:vm' {
|
|
|
150
150
|
*/
|
|
151
151
|
function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
|
|
152
152
|
}
|
|
153
|
-
declare module
|
|
154
|
-
export * from
|
|
153
|
+
declare module "node:vm" {
|
|
154
|
+
export * from "vm";
|
|
155
155
|
}
|
node v14.18/wasi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module "wasi" {
|
|
2
2
|
interface WASIOptions {
|
|
3
3
|
/**
|
|
4
4
|
* An array of strings that the WebAssembly application will
|
|
@@ -52,7 +52,6 @@ declare module 'node:wasi' {
|
|
|
52
52
|
class WASI {
|
|
53
53
|
constructor(options?: WASIOptions);
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
55
|
* Attempt to begin execution of `instance` by invoking its `_start()` export.
|
|
57
56
|
* If `instance` does not contain a `_start()` export, then `start()` attempts to
|
|
58
57
|
* invoke the `__wasi_unstable_reactor_start()` export. If neither of those exports
|
|
@@ -84,6 +83,6 @@ declare module 'node:wasi' {
|
|
|
84
83
|
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
|
-
declare module
|
|
88
|
-
export * from
|
|
86
|
+
declare module "node:wasi" {
|
|
87
|
+
export * from "wasi";
|
|
89
88
|
}
|
node v14.18/worker_threads.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import { Context } from
|
|
3
|
-
import EventEmitter = require(
|
|
4
|
-
import { Readable, Writable } from
|
|
5
|
-
import { URL } from
|
|
6
|
-
import { FileHandle } from
|
|
1
|
+
declare module "worker_threads" {
|
|
2
|
+
import { Context } from "vm";
|
|
3
|
+
import EventEmitter = require("events");
|
|
4
|
+
import { Readable, Writable } from "stream";
|
|
5
|
+
import { URL } from "url";
|
|
6
|
+
import { FileHandle } from "fs/promises";
|
|
7
7
|
|
|
8
8
|
const isMainThread: boolean;
|
|
9
9
|
const parentPort: null | MessagePort;
|
|
@@ -236,6 +236,6 @@ declare module 'node:worker_threads' {
|
|
|
236
236
|
*/
|
|
237
237
|
function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
|
|
238
238
|
}
|
|
239
|
-
declare module
|
|
240
|
-
export * from
|
|
239
|
+
declare module "node:worker_threads" {
|
|
240
|
+
export * from "worker_threads";
|
|
241
241
|
}
|
node v14.18/zlib.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import * as stream from
|
|
1
|
+
declare module "zlib" {
|
|
2
|
+
import * as stream from "stream";
|
|
3
3
|
|
|
4
4
|
interface ZlibOptions {
|
|
5
5
|
/**
|
|
@@ -63,15 +63,15 @@ declare module 'node:zlib' {
|
|
|
63
63
|
reset(): void;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
interface BrotliCompress extends stream.Transform, Zlib {
|
|
67
|
-
interface BrotliDecompress extends stream.Transform, Zlib {
|
|
68
|
-
interface Gzip extends stream.Transform, Zlib {
|
|
69
|
-
interface Gunzip extends stream.Transform, Zlib {
|
|
70
|
-
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {
|
|
71
|
-
interface Inflate extends stream.Transform, Zlib, ZlibReset {
|
|
72
|
-
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {
|
|
73
|
-
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {
|
|
74
|
-
interface Unzip extends stream.Transform, Zlib {
|
|
66
|
+
interface BrotliCompress extends stream.Transform, Zlib {}
|
|
67
|
+
interface BrotliDecompress extends stream.Transform, Zlib {}
|
|
68
|
+
interface Gzip extends stream.Transform, Zlib {}
|
|
69
|
+
interface Gunzip extends stream.Transform, Zlib {}
|
|
70
|
+
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
71
|
+
interface Inflate extends stream.Transform, Zlib, ZlibReset {}
|
|
72
|
+
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
73
|
+
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
|
|
74
|
+
interface Unzip extends stream.Transform, Zlib {}
|
|
75
75
|
|
|
76
76
|
function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
|
|
77
77
|
function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
|
|
@@ -359,6 +359,6 @@ declare module 'node:zlib' {
|
|
|
359
359
|
/** @deprecated */
|
|
360
360
|
const Z_DEFLATED: number;
|
|
361
361
|
}
|
|
362
|
-
declare module
|
|
363
|
-
export * from
|
|
362
|
+
declare module "node:zlib" {
|
|
363
|
+
export * from "zlib";
|
|
364
364
|
}
|