@types/node 18.18.14 → 18.19.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 v18.18 → node v18.19}/README.md +1 -1
- node v18.19/globals.d.ts +377 -0
- {node v18.18/ts4.8 → node v18.19}/module.d.ts +41 -5
- {node v18.18 → node v18.19}/package.json +2 -2
- {node v18.18/ts4.8 → node v18.19}/process.d.ts +6 -0
- {node v18.18/ts4.8 → node v18.19}/test.d.ts +197 -58
- {node v18.18 → node v18.19}/tls.d.ts +12 -0
- node v18.19/ts4.8/globals.d.ts +377 -0
- {node v18.18 → node v18.19/ts4.8}/module.d.ts +41 -5
- {node v18.18 → node v18.19/ts4.8}/process.d.ts +6 -0
- {node v18.18 → node v18.19/ts4.8}/test.d.ts +197 -58
- {node v18.18 → node v18.19}/ts4.8/tls.d.ts +12 -0
- {node v18.18 → node v18.19}/ts4.8/vm.d.ts +7 -3
- {node v18.18 → node v18.19}/vm.d.ts +7 -3
- node v18.18/globals.d.ts +0 -381
- node v18.18/ts4.8/globals.d.ts +0 -381
- {node v18.18 → node v18.19}/LICENSE +0 -0
- {node v18.18 → node v18.19}/assert/strict.d.ts +0 -0
- {node v18.18 → node v18.19}/assert.d.ts +0 -0
- {node v18.18 → node v18.19}/async_hooks.d.ts +0 -0
- {node v18.18 → node v18.19}/buffer.d.ts +0 -0
- {node v18.18 → node v18.19}/child_process.d.ts +0 -0
- {node v18.18 → node v18.19}/cluster.d.ts +0 -0
- {node v18.18 → node v18.19}/console.d.ts +0 -0
- {node v18.18 → node v18.19}/constants.d.ts +0 -0
- {node v18.18 → node v18.19}/crypto.d.ts +0 -0
- {node v18.18 → node v18.19}/dgram.d.ts +0 -0
- {node v18.18 → node v18.19}/diagnostics_channel.d.ts +0 -0
- {node v18.18 → node v18.19}/dns/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/dns.d.ts +0 -0
- {node v18.18 → node v18.19}/dom-events.d.ts +0 -0
- {node v18.18 → node v18.19}/domain.d.ts +0 -0
- {node v18.18 → node v18.19}/events.d.ts +0 -0
- {node v18.18 → node v18.19}/fs/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/fs.d.ts +0 -0
- {node v18.18 → node v18.19}/globals.global.d.ts +0 -0
- {node v18.18 → node v18.19}/http.d.ts +0 -0
- {node v18.18 → node v18.19}/http2.d.ts +0 -0
- {node v18.18 → node v18.19}/https.d.ts +0 -0
- {node v18.18 → node v18.19}/index.d.ts +0 -0
- {node v18.18 → node v18.19}/inspector.d.ts +0 -0
- {node v18.18 → node v18.19}/net.d.ts +0 -0
- {node v18.18 → node v18.19}/os.d.ts +0 -0
- {node v18.18 → node v18.19}/path.d.ts +0 -0
- {node v18.18 → node v18.19}/perf_hooks.d.ts +0 -0
- {node v18.18 → node v18.19}/punycode.d.ts +0 -0
- {node v18.18 → node v18.19}/querystring.d.ts +0 -0
- {node v18.18 → node v18.19}/readline/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/readline.d.ts +0 -0
- {node v18.18 → node v18.19}/repl.d.ts +0 -0
- {node v18.18 → node v18.19}/stream/consumers.d.ts +0 -0
- {node v18.18 → node v18.19}/stream/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/stream/web.d.ts +0 -0
- {node v18.18 → node v18.19}/stream.d.ts +0 -0
- {node v18.18 → node v18.19}/string_decoder.d.ts +0 -0
- {node v18.18 → node v18.19}/timers/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/timers.d.ts +0 -0
- {node v18.18 → node v18.19}/trace_events.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/assert/strict.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/assert.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/async_hooks.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/buffer.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/child_process.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/cluster.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/console.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/constants.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/crypto.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/dgram.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/diagnostics_channel.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/dns/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/dns.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/dom-events.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/domain.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/events.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/fs/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/fs.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/globals.global.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/http.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/http2.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/https.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/index.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/inspector.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/net.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/os.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/path.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/perf_hooks.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/punycode.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/querystring.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/readline/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/readline.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/repl.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/stream/consumers.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/stream/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/stream/web.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/stream.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/string_decoder.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/timers/promises.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/timers.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/trace_events.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/tty.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/url.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/util.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/v8.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/wasi.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/worker_threads.d.ts +0 -0
- {node v18.18 → node v18.19}/ts4.8/zlib.d.ts +0 -0
- {node v18.18 → node v18.19}/tty.d.ts +0 -0
- {node v18.18 → node v18.19}/url.d.ts +0 -0
- {node v18.18 → node v18.19}/util.d.ts +0 -0
- {node v18.18 → node v18.19}/v8.d.ts +0 -0
- {node v18.18 → node v18.19}/wasi.d.ts +0 -0
- {node v18.18 → node v18.19}/worker_threads.d.ts +0 -0
- {node v18.18 → node v18.19}/zlib.d.ts +0 -0
node v18.18/globals.d.ts
DELETED
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
// Declare "static" methods in Error
|
|
2
|
-
interface ErrorConstructor {
|
|
3
|
-
/** Create .stack property on a target object */
|
|
4
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Optional override for formatting stack traces
|
|
8
|
-
*
|
|
9
|
-
* @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
10
|
-
*/
|
|
11
|
-
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
12
|
-
|
|
13
|
-
stackTraceLimit: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/*-----------------------------------------------*
|
|
17
|
-
* *
|
|
18
|
-
* GLOBAL *
|
|
19
|
-
* *
|
|
20
|
-
------------------------------------------------*/
|
|
21
|
-
|
|
22
|
-
// For backwards compability
|
|
23
|
-
interface NodeRequire extends NodeJS.Require {}
|
|
24
|
-
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
25
|
-
interface NodeModule extends NodeJS.Module {}
|
|
26
|
-
|
|
27
|
-
declare var process: NodeJS.Process;
|
|
28
|
-
declare var console: Console;
|
|
29
|
-
|
|
30
|
-
declare var __filename: string;
|
|
31
|
-
declare var __dirname: string;
|
|
32
|
-
|
|
33
|
-
declare var require: NodeRequire;
|
|
34
|
-
declare var module: NodeModule;
|
|
35
|
-
|
|
36
|
-
// Same as module.exports
|
|
37
|
-
declare var exports: any;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Only available if `--expose-gc` is passed to the process.
|
|
41
|
-
*/
|
|
42
|
-
declare var gc: undefined | (() => void);
|
|
43
|
-
|
|
44
|
-
// #region borrowed
|
|
45
|
-
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
46
|
-
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
47
|
-
interface AbortController {
|
|
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
|
-
}
|
|
58
|
-
|
|
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
|
-
interface AbortSignal extends EventTarget {
|
|
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
|
-
}
|
|
69
|
-
|
|
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 Disposable
|
|
86
|
-
interface SymbolConstructor {
|
|
87
|
-
/**
|
|
88
|
-
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
|
89
|
-
*/
|
|
90
|
-
readonly dispose: unique symbol;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
|
94
|
-
*/
|
|
95
|
-
readonly asyncDispose: unique symbol;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface Disposable {
|
|
99
|
-
[Symbol.dispose](): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface AsyncDisposable {
|
|
103
|
-
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
104
|
-
}
|
|
105
|
-
// #endregion Disposable
|
|
106
|
-
|
|
107
|
-
// #region ArrayLike.at()
|
|
108
|
-
interface RelativeIndexable<T> {
|
|
109
|
-
/**
|
|
110
|
-
* Takes an integer value and returns the item at that index,
|
|
111
|
-
* allowing for positive and negative integers.
|
|
112
|
-
* Negative integers count back from the last item in the array.
|
|
113
|
-
*/
|
|
114
|
-
at(index: number): T | undefined;
|
|
115
|
-
}
|
|
116
|
-
interface String extends RelativeIndexable<string> {}
|
|
117
|
-
interface Array<T> extends RelativeIndexable<T> {}
|
|
118
|
-
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
119
|
-
interface Int8Array extends RelativeIndexable<number> {}
|
|
120
|
-
interface Uint8Array extends RelativeIndexable<number> {}
|
|
121
|
-
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
|
122
|
-
interface Int16Array extends RelativeIndexable<number> {}
|
|
123
|
-
interface Uint16Array extends RelativeIndexable<number> {}
|
|
124
|
-
interface Int32Array extends RelativeIndexable<number> {}
|
|
125
|
-
interface Uint32Array extends RelativeIndexable<number> {}
|
|
126
|
-
interface Float32Array extends RelativeIndexable<number> {}
|
|
127
|
-
interface Float64Array extends RelativeIndexable<number> {}
|
|
128
|
-
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
129
|
-
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
130
|
-
// #endregion ArrayLike.at() end
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @since v17.0.0
|
|
134
|
-
*
|
|
135
|
-
* Creates a deep clone of an object.
|
|
136
|
-
*/
|
|
137
|
-
declare function structuredClone<T>(
|
|
138
|
-
value: T,
|
|
139
|
-
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
140
|
-
): T;
|
|
141
|
-
|
|
142
|
-
/*----------------------------------------------*
|
|
143
|
-
* *
|
|
144
|
-
* GLOBAL INTERFACES *
|
|
145
|
-
* *
|
|
146
|
-
*-----------------------------------------------*/
|
|
147
|
-
declare namespace NodeJS {
|
|
148
|
-
interface CallSite {
|
|
149
|
-
/**
|
|
150
|
-
* Value of "this"
|
|
151
|
-
*/
|
|
152
|
-
getThis(): unknown;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Type of "this" as a string.
|
|
156
|
-
* This is the name of the function stored in the constructor field of
|
|
157
|
-
* "this", if available. Otherwise the object's [[Class]] internal
|
|
158
|
-
* property.
|
|
159
|
-
*/
|
|
160
|
-
getTypeName(): string | null;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Current function
|
|
164
|
-
*/
|
|
165
|
-
getFunction(): Function | undefined;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Name of the current function, typically its name property.
|
|
169
|
-
* If a name property is not available an attempt will be made to try
|
|
170
|
-
* to infer a name from the function's context.
|
|
171
|
-
*/
|
|
172
|
-
getFunctionName(): string | null;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Name of the property [of "this" or one of its prototypes] that holds
|
|
176
|
-
* the current function
|
|
177
|
-
*/
|
|
178
|
-
getMethodName(): string | null;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Name of the script [if this function was defined in a script]
|
|
182
|
-
*/
|
|
183
|
-
getFileName(): string | undefined;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Current line number [if this function was defined in a script]
|
|
187
|
-
*/
|
|
188
|
-
getLineNumber(): number | null;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Current column number [if this function was defined in a script]
|
|
192
|
-
*/
|
|
193
|
-
getColumnNumber(): number | null;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* A call site object representing the location where eval was called
|
|
197
|
-
* [if this function was created using a call to eval]
|
|
198
|
-
*/
|
|
199
|
-
getEvalOrigin(): string | undefined;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Is this a toplevel invocation, that is, is "this" the global object?
|
|
203
|
-
*/
|
|
204
|
-
isToplevel(): boolean;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Does this call take place in code defined by a call to eval?
|
|
208
|
-
*/
|
|
209
|
-
isEval(): boolean;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Is this call in native V8 code?
|
|
213
|
-
*/
|
|
214
|
-
isNative(): boolean;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Is this a constructor call?
|
|
218
|
-
*/
|
|
219
|
-
isConstructor(): boolean;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
interface ErrnoException extends Error {
|
|
223
|
-
errno?: number | undefined;
|
|
224
|
-
code?: string | undefined;
|
|
225
|
-
path?: string | undefined;
|
|
226
|
-
syscall?: string | undefined;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface ReadableStream extends EventEmitter {
|
|
230
|
-
readable: boolean;
|
|
231
|
-
read(size?: number): string | Buffer;
|
|
232
|
-
setEncoding(encoding: BufferEncoding): this;
|
|
233
|
-
pause(): this;
|
|
234
|
-
resume(): this;
|
|
235
|
-
isPaused(): boolean;
|
|
236
|
-
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
|
|
237
|
-
unpipe(destination?: WritableStream): this;
|
|
238
|
-
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
239
|
-
wrap(oldStream: ReadableStream): this;
|
|
240
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
interface WritableStream extends EventEmitter {
|
|
244
|
-
writable: boolean;
|
|
245
|
-
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
246
|
-
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
247
|
-
end(cb?: () => void): this;
|
|
248
|
-
end(data: string | Uint8Array, cb?: () => void): this;
|
|
249
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
interface ReadWriteStream extends ReadableStream, WritableStream {}
|
|
253
|
-
|
|
254
|
-
interface RefCounted {
|
|
255
|
-
ref(): this;
|
|
256
|
-
unref(): this;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
type TypedArray =
|
|
260
|
-
| Uint8Array
|
|
261
|
-
| Uint8ClampedArray
|
|
262
|
-
| Uint16Array
|
|
263
|
-
| Uint32Array
|
|
264
|
-
| Int8Array
|
|
265
|
-
| Int16Array
|
|
266
|
-
| Int32Array
|
|
267
|
-
| BigUint64Array
|
|
268
|
-
| BigInt64Array
|
|
269
|
-
| Float32Array
|
|
270
|
-
| Float64Array;
|
|
271
|
-
type ArrayBufferView = TypedArray | DataView;
|
|
272
|
-
|
|
273
|
-
interface Require {
|
|
274
|
-
(id: string): any;
|
|
275
|
-
resolve: RequireResolve;
|
|
276
|
-
cache: Dict<NodeModule>;
|
|
277
|
-
/**
|
|
278
|
-
* @deprecated
|
|
279
|
-
*/
|
|
280
|
-
extensions: RequireExtensions;
|
|
281
|
-
main: Module | undefined;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
interface RequireResolve {
|
|
285
|
-
(id: string, options?: { paths?: string[] | undefined }): string;
|
|
286
|
-
paths(request: string): string[] | null;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
|
|
290
|
-
".js": (m: Module, filename: string) => any;
|
|
291
|
-
".json": (m: Module, filename: string) => any;
|
|
292
|
-
".node": (m: Module, filename: string) => any;
|
|
293
|
-
}
|
|
294
|
-
interface Module {
|
|
295
|
-
/**
|
|
296
|
-
* `true` if the module is running during the Node.js preload
|
|
297
|
-
*/
|
|
298
|
-
isPreloading: boolean;
|
|
299
|
-
exports: any;
|
|
300
|
-
require: Require;
|
|
301
|
-
id: string;
|
|
302
|
-
filename: string;
|
|
303
|
-
loaded: boolean;
|
|
304
|
-
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
305
|
-
parent: Module | null | undefined;
|
|
306
|
-
children: Module[];
|
|
307
|
-
/**
|
|
308
|
-
* @since v11.14.0
|
|
309
|
-
*
|
|
310
|
-
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
311
|
-
*/
|
|
312
|
-
path: string;
|
|
313
|
-
paths: string[];
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
interface Dict<T> {
|
|
317
|
-
[key: string]: T | undefined;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface ReadOnlyDict<T> {
|
|
321
|
-
readonly [key: string]: T | undefined;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
namespace fetch {
|
|
325
|
-
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
326
|
-
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
327
|
-
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
328
|
-
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
329
|
-
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
330
|
-
: import("undici-types").RequestInit;
|
|
331
|
-
type Request = globalThis.Request;
|
|
332
|
-
type Response = globalThis.Response;
|
|
333
|
-
type Headers = globalThis.Headers;
|
|
334
|
-
type FormData = globalThis.FormData;
|
|
335
|
-
type RequestInit = globalThis.RequestInit;
|
|
336
|
-
type RequestInfo = import("undici-types").RequestInfo;
|
|
337
|
-
type HeadersInit = import("undici-types").HeadersInit;
|
|
338
|
-
type BodyInit = import("undici-types").BodyInit;
|
|
339
|
-
type RequestRedirect = import("undici-types").RequestRedirect;
|
|
340
|
-
type RequestCredentials = import("undici-types").RequestCredentials;
|
|
341
|
-
type RequestMode = import("undici-types").RequestMode;
|
|
342
|
-
type ReferrerPolicy = import("undici-types").ReferrerPolicy;
|
|
343
|
-
type Dispatcher = import("undici-types").Dispatcher;
|
|
344
|
-
type RequestDuplex = import("undici-types").RequestDuplex;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
interface RequestInit extends NodeJS.fetch._RequestInit {}
|
|
349
|
-
|
|
350
|
-
declare function fetch(
|
|
351
|
-
input: NodeJS.fetch.RequestInfo,
|
|
352
|
-
init?: RequestInit,
|
|
353
|
-
): Promise<Response>;
|
|
354
|
-
|
|
355
|
-
interface Request extends NodeJS.fetch._Request {}
|
|
356
|
-
declare var Request: typeof globalThis extends {
|
|
357
|
-
onmessage: any;
|
|
358
|
-
Request: infer T;
|
|
359
|
-
} ? T
|
|
360
|
-
: typeof import("undici-types").Request;
|
|
361
|
-
|
|
362
|
-
interface Response extends NodeJS.fetch._Response {}
|
|
363
|
-
declare var Response: typeof globalThis extends {
|
|
364
|
-
onmessage: any;
|
|
365
|
-
Response: infer T;
|
|
366
|
-
} ? T
|
|
367
|
-
: typeof import("undici-types").Response;
|
|
368
|
-
|
|
369
|
-
interface FormData extends NodeJS.fetch._FormData {}
|
|
370
|
-
declare var FormData: typeof globalThis extends {
|
|
371
|
-
onmessage: any;
|
|
372
|
-
FormData: infer T;
|
|
373
|
-
} ? T
|
|
374
|
-
: typeof import("undici-types").FormData;
|
|
375
|
-
|
|
376
|
-
interface Headers extends NodeJS.fetch._Headers {}
|
|
377
|
-
declare var Headers: typeof globalThis extends {
|
|
378
|
-
onmessage: any;
|
|
379
|
-
Headers: infer T;
|
|
380
|
-
} ? T
|
|
381
|
-
: typeof import("undici-types").Headers;
|